Tuesday, September 27, 2022

grep command in Linux

grep string filename: Search for and display lines of filename that contain occurrences of string. 

grep string -r --exclude-dir={media,proc,sys} //  recursive search in  / excluding certain dirs

No comments:

Post a Comment