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
Why is it called grep?
What is rmdir command?
How do I search for a file in unix command?
What is .sh file?
Explain how to use grep command to list find the records of a file containing 10 different strings?
Which command is used to kill the last background job?
Why is it called a shebang?
What command will change your prompt to myprompt?
What does touch command do in unix?
How do you repeat a command in terminal?
How can we use grep command in unix?
What is in grep command?
What do know about tee command and its usage?
What are the unix commands?
What is awk command used for?