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
What happens when we execute a unix command?
What is ‘ps’ command for?
What is the use of cut command in unix?
What are reported commands?
What is the significance of the 'tee' command?
What is s and g in sed command?
How do I search for text in vi?
What command will change your prompt to myprompt?
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 is the difference between awk and grep?
Enumerate some of the most commonly used network commands in unix?
What is used to type command?
what is the advaantage of each user having its own copy of the shell?
What does the command ' $who | sort –logfile > newfile' do?
How do I search a whole word in vim?