Tuesday, July 4, 2017

How to find whether text exist in a file

grep -r -e 'text' -e 'text1' file_name.* > file_name2

-- here grep will look for text and text1 in file_name and store in file_name2

No comments:

Post a Comment