What is the syntax of grep command and what is its use?
Answer Posted / ankita
grep is used to find the patterns inside files.
grep -options "pattern" file_name
grep -i "hello" test_file
this is search for "hello"(case doesn't matter as we have used -i) in test_file
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are filter commands in unix?
What command is used to switching between users in unix?
Enumerate some of the most commonly used network commands in unix?
Explain ‘library functions’ with respect to unix commands?
What is pipe command in unix?
What are awk commands?
How do I clear my terminal history?
Can you enlist some commonly used network commands?
How can you see the command line history?
What is the difference between grep and grep?
What does the “echo” command do?
Give the command for finding the current date.
How does the system know where one command ends and another begins?
What does this command do? Cat food 1 > kitty
What is awk good for?