Answer Posted / satchi
Grep is a filter used for pattern matching in shell script.
It searches for the patern if file name is give, or else it
will look for the input data using pipe(|)
Syntax:
1. Grep <patern to search> <Filename>
2. cat <filename> | grep <Patern to search.>
we can use -i option to ignore case sensitiveness.There are
so many options available.you have to explore that.
| Is This Answer Correct ? | 18 Yes | 4 No |
Post New Answer View All Answers
What does echo $0 do?
What is web script?
What is bash shell command?
What is a shell script? Can you name some of its advantages?
What does $$ mean in shell script?
What does $1 mean in bash?
how to print the 2-d, 3-d arrays in unix shell script programs please answer thi questio to my mail venusaikumar@gmail.com
What is shell prompt?
Explain about echo command?
Suppose you execute a command using exec, what will be the status of your current process in the shell?
What are the different commands available to check the disk usage?
What happens when you type ls?
What does $0 mean in shell script?
Which is better perl or shell scripting?
write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?