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 use of sed command in unix?
Write a command to display a file’s contents in various formats?
What is a command and examples?
What is the comma to show the space allocation of files?
How can we use grep command in unix?
What does the command '$ls | wc –l > file1' do?
Explain ‘system calls’ with respect to unix commands?
Are you in or at the office?
What does the metacharacter mean?
What are the unix commands?
What is ‘ps’ command for?
Which command will print your home directory on screen?
Which unix command to make a new directory?
What is the use of awk command in unix?
Is ‘du’ a command? If so, what is its use?