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
How to set an array in linux?
What is another name for a bash shell script that you might see?
Why are there shells on the beach?
Which is better perl or shell scripting?
What is bourne shell scripting?
What is a shell script in windows?
How do I open the shell prompt?
Explain about gui scripting?
What are the different types of commonly used shells on a typical linux system?
What is the default shell of solaris?
What is awk in shell script?
What is .sh file in mac?
What is the difference between scripting and coding?
What language is bash written in?
write a shell script to check the failed jobs?