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


Please Help Members By Posting Answers For Below Questions

How does the kernel differentiate device files and ordinary files?

554


What is a unix file?

521


Explain superblock in unix.

493


Elucidate on the different ids used in the unix process?

489


What is the home directory in unix?

487






Why was unix created?

500


Explain how and when a DNS request is solved when a user tries to surf to the site www.abcdeg.in .Assume the user machine uses a local name server and sits on another network other than www.abcdef.in.

4335


Is android unix based?

580


Explain pid.

548


In what way the Fault Handlers and the Interrupt handlers are different?

531


What is the command to connect to remote terminals

528


What are the basic responsibilities of a shell?

513


Is unix the first operating system?

497


What is difference between unix and windows?

483


Is mac unix based?

503