how to find multiple string?

Answers were Sorted based on User's Feedback



how to find multiple string?..

Answer / sarvan

Use extended grep command

egrep 'searchstr1 | searchchstr2' file.txt

Is This Answer Correct ?    18 Yes 1 No

how to find multiple string?..

Answer / satyaranjan samal

grep -e 'string 1' -e 'string 2' filename

Is This Answer Correct ?    8 Yes 2 No

how to find multiple string?..

Answer / amedela chandra sekhar

fgrep 'searchstr1 | searchchstr2' file.txt

Is This Answer Correct ?    9 Yes 6 No

how to find multiple string?..

Answer / pree

grep -e 'string1|string2' <filename>

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Unix General Interview Questions

What do you understand by the term filters?

0 Answers  


What do you understand by the term kernel?

0 Answers  


List the distributions of unix.

0 Answers  


How old is unix?

0 Answers  


What does ls lrt in unix?

0 Answers  






How do we change file access permissions?

0 Answers  


Is windows built on unix?

0 Answers  


How do you kill a job in unix?

0 Answers  


Does ios use unix?

0 Answers  


Is windows unix?

0 Answers  


What is a parent directory in unix?

0 Answers  


What is unix in simple terms?

0 Answers  


Categories