how to use grep command to list find the records of a file
containg 10 different strings

Answers were Sorted based on User's Feedback



how to use grep command to list find the records of a file containg 10 different strings..

Answer / raghu

egrep "word1|word2" filename

Is This Answer Correct ?    27 Yes 2 No

how to use grep command to list find the records of a file containg 10 different strings..

Answer / siva

try this command

egrep "string1|string2|string3" <filename.extn>

Is This Answer Correct ?    12 Yes 2 No

how to use grep command to list find the records of a file containg 10 different strings..

Answer / raja

egrep "string1|string2" *.*

Is This Answer Correct ?    0 Yes 1 No

how to use grep command to list find the records of a file containg 10 different strings..

Answer / supriya

grep 'word1|word2' <filename>

Is This Answer Correct ?    1 Yes 5 No

how to use grep command to list find the records of a file containg 10 different strings..

Answer / umakanta

grep -w 'word1|word2' filename

Is This Answer Correct ?    8 Yes 14 No

Post New Answer

More Unix General Interview Questions

Is mac a unix?

0 Answers  


Is windows unix based?

0 Answers  


How the Kernel handles the fork() system call in traditional Unix and in the System V Unix, while swapping?

0 Answers  


Is windows unix like?

0 Answers  


What is af_unix?

0 Answers  






Is windows unix?

0 Answers  


How do I remove 30 days old files in unix?

0 Answers  


What is the use of -l when listing a directory?

0 Answers  


What is the full form of unix operating system?

0 Answers  


Name the key features of the korn shell.

0 Answers  


Explain pid.

0 Answers  


Is it possible to restrict incoming message?

0 Answers  


Categories