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
hw will u use awk in replacing cahrs and files
why metadb requires a seperate slice to create Solaris volume manager
What does the “echo” command do?
What is the first character of the output in ls l command?
What is merge command in unix?
When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system.
How can i findthe right soluion???
My pgm:
#include
What does this command do? Cat food 1 > kitty
Explain command to display different lines that are found when compare two files?
What is the difference between cat command and more command?
What are grep patterns?
How do you grep a case insensitive?
What is .sh file?
How can we use grep command in unix?
Which command is used to create a directory?
What is rmdir command?