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
How to display no of records in oracle using unix command?
What is the first character of the output in ls l command?
What does the command ' $who | sort –logfile > newfile' do?
How do I search a whole word in vim?
Which unix command lists files/folders in alphabetical order?
Which command is used to copy files?
What is command substitution?
What is the search command in unix?
What is the command to view process running?
How do you grep recursively?
What does find command return in unix?
Who invented grep?
What does the md command do?
What is the comma to show the space allocation of files?
How do I open a port?