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 is the nmap command?
What is unix command?
How do I use grep to search for a file?
Are you in or at the office?
How do I search for text in vi?
What is the use of cut command in unix?
What is unix command line?
What does this command do,"$more readme.txt“?
How can you see the command line history?
What is the command to view process running?
What is sed awk grep?
What is the use of egrep command in unix?
What is updatedb?
What are filter commands in unix?
What are bash commands?