Saturday, May 8, 2010

Difference between grep and find

GREP :

g/re/p meaning search globally for a regular expression and print lines where instances are found
Searches for a pattern in a file. syntax
grep "/bin/bash" /etc/files

FIND :
command searches for files in the current directory and its subdirectories


No comments:

Post a Comment