Friday, March 15, 2013

List file name containing perticular text in Linux


In Linux Shell to find a particular text string in all the files from the current directory recursively, use find command
 find . -exec grep -l "World" {} \;
This command searches through all directories from the current directory recursively for the files that contain the string “World”.

No comments:

Post a Comment