Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

UNIX Terminal – Grep Directory Recursively

Posted on May 22, 2016 By David Kittell

Sometimes you really need to find a file that has certain text in it, these commands will help provided you have an idea of the directory or the string

grep -R 'final exam' ~/Documents
# OR
find ~/Documents -type f -exec grep -H 'final exam' {} +
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

CentOS Code Fedora Mac OS X Shell Mac OSX Red Hat Ubuntu UNIX UNIX Shell Scripts findfind filesfind textgrepsearch for text

Post navigation

Previous post
Next post

Related Posts

Mac OSX Terminal – Parallels VM Backup / Restore

Posted on June 28, 2019

If you use Parallels like I do sometimes you need to test things and recover from that test rather quickly. My process is to first build the base/template VM the way I want it and then back it up before testing things. In intervals if I’m going to continue to…

Read More

Connect to SSH from Terminal

Posted on October 28, 2015

When on a UNIX based computer you can connect to another terminal via SSH using this command ssh -p 22 user@your.ip.address The -p defines the port, while 22 is the default port for SSH some servers change their port to ward off potential hackers. Make sure you know what the…

Read More

Raspberry Pi – Install GUI on Lite (Console)

Posted on August 8, 2018

sudo apt-get install –no-install-recommends xserver-xorg -y sudo apt-get install –no-install-recommends xinit -y sudo apt-get install lightdm -y sudo apt-get install raspberrypi-ui-mods -y All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • Open On Screen Keyboard (OSK)
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes