Shell Scripting Question:
Download Questions PDF

How do you search for a string inside a given file?

Answer:

grep string filename

Download Shell Scripting Interview Questions And Answers PDF

Previous QuestionNext Question
How do you count words, lines and characters in a file?How do you search for a string inside a directory?