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 is nr in awk command?
Differentiate cat command from more command.
What command will change your prompt to myprompt?
what is the advaantage of each user having its own copy of the shell?
Which command is used to delete all files in the current directory and all its sub-directories?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
How do I run a whois command?
What is the difference between grep and grep?
What happens when we execute a unix command?
What is the use of tee command?
How do I search for a file in unix command?
What is $0 bash?
Which command will print your home directory on screen?
Explain the steps that a shell follows while processing a command.
What are grep patterns?