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

What are the types of unix?

0 Answers  


How do I search for a file in unix?

0 Answers  


What are the components of unix kernel?

0 Answers  


What is the full meaning of unix?

0 Answers  


Can you tell me something about wildcard interpretation?

0 Answers  


What is typeset in unix?

0 Answers  


What unix is mac os based on?

0 Answers  


Explain piping.

0 Answers  


What is meant by u-area?

0 Answers  


Describe the term inode?

0 Answers  


Where is unix operating system used?

0 Answers  


how to find multiple string?

4 Answers   Accenture, POL,


Categories