Friday, January 22, 2010

Brazilan Movie Based On Book

Search text in files through the console

Stopping in the face of today need to search for some text in text files that are included in the current directory or one of its subdirectories poszperaƂem little help and invented such a combination:

cat $ (find . -Name "*. txt"-print) - Cat output is fed to grep, which searches for text in the "text" being insensitive to case (i) and adding a file name for each line in which there is a hit (H).


0 comments:

Post a Comment