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 is the ‘nohup’ in unix?

0 Answers  


What are the essential features of the unix operating system?

0 Answers  


What is .login file in unix?

0 Answers  


Who is founder of unix?

0 Answers  


Explain how do you create special files like named pipes and device files?

0 Answers  






Where unix is used today?

0 Answers  


How to install unix on windows 10?

0 Answers  


Is mac built on unix?

0 Answers  


What are the general Commands in using Unix OS for a beginner? how many commands you know in that?

2 Answers  


What do you mean by unix operating system?

0 Answers  


What is pattern matching in unix?

0 Answers  


What is a unix shell?

0 Answers  


Categories