how to use grep command to list find the records of a file
containg 10 different strings
Answer Posted / siva
try this command
egrep "string1|string2|string3" <filename.extn>
| Is This Answer Correct ? | 12 Yes | 2 No |
Post New Answer View All Answers
Why is it that it is not advisable to use root as the default login?
What is a superuser?
How do I grep recursively in unix?
How to print/display the last line of a file in Unix?
What is .login file in unix?
What is piping?
Is mac a unix system?
I have one flat file,in this file how many columns are there i don't know,but one ename column is there , just i want to cut the surname, so how to cut the surname, any one know the answer please guide me ? ename ----- tapan kumar nayak bala murugan kutal chkrobarthy biswo My output is like that OUTPUT ------ nayak murugan chakrobarthy biswo
What are directories in unix?
What is a unix file?
What is the difference between a single dot and double dot in unix?
What is the difference between an absolute path and a relative path in unix?
How do I show hidden files in unix?
What is the use of unix?
How to change the password in unix operating system?