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
Which command is used to copy files?
What happens when we execute a unix command?
Can you enlist some commonly used network commands?
Does cp command overwrite files?
What are the general commands in using unix os for a beginner?
Which command should you use to find the remaining disk space in unix server?
How does the system know where one command ends and another begins?
What is unix command line?
Give the command for finding the current date.
How can you see the command line history?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
What is the significance of the 'tee' command?
What are the dos commands?
What does awk stand for?
Who invented grep?