1.

Write a script to accept a string and a filename from the user. Search all occurences of the string inside a given file.

Answer»

ext STRING to SEARCH" directory-pathgrep [option] "text string to search" directory-pathgrep -R "text string to search"directory-pathgrep -r -H "text string to search" directory-pathegrep -R "word-1|word-2" /path/to/directoryegrep -W -R "word-1|word-2" directory-path



Discussion

No Comment Found