Home » Archive

Articles tagged with: search

Linux »

[9 Mar 2015 | No Comment | ]
Find Files in a Directory

Suppose you have several directories with several sub-directories with files in them. How do you go about finding the files you need? You may want to find the latest modified files. You may want to find files belonging to a certain group. You may want to find files under the dotfiles directories. The list goes on and on.

Linux »

[4 Nov 2013 | No Comment | ]
Search for a string in a directory of files

Suppose you have a string that you want to search in a directory. How would you do it? What if this directory contains many files and sub-directories? What if you want to search the string in a particular set of files?

Featured, Linux »

[27 Mar 2011 | No Comment | ]
Find and Replace with SED

The power of search and replace is prevalent all over Linux. Whether you are using a text editor or on the command line, regular expressions come in handy.

When you are using a text editor such as vi, you are probably familiar with the search and replace feature. From the command line, the find and replace feature is also available if you use sed.