Answer Posted / pavankumar
grep is used to matching a pattern in a file...
we can use regular expressions in conjuction with grep.
suppose for example if you want to find the all occurences of
pavan in a file, you can use...
grep pavan *
it searches all files in the current directory files and
returns all those files which contain pavan.
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
why metadb requires a seperate slice to create Solaris volume manager
What does sed command do in unix?
Write a command to display a file’s contents in various formats?
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 command to compare two files in unix?
How do I run a whois command?
Can you enlist some commonly used network commands?
Why is it called grep?
Which command will print your home directory on screen?
Explain command to view process running?
hw will u use awk in replacing cahrs and files
What are reported commands?
How to display no of records in oracle using unix command?
how to sort the content of the file based on numeric values
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?