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 scheme does the Kernel in Unix System V follow while choosing a swap device among the multiple swap devices?

0 Answers  


How do I grep recursively in unix?

0 Answers  


Is unix os free?

0 Answers  


What will be the result if we run the command #find /tmp - mtime -2 and #find /tmp -mtime +2

6 Answers   Steria,


What is a unix shell?

0 Answers  






Explain Sticky bit?

0 Answers  


What are the basic responsibilities of a shell?

0 Answers  


What do you understand by the term kernel?

0 Answers  


Explain links and symbolic links.

0 Answers  


Does apple run unix?

0 Answers  


What is a shell?

0 Answers  


Where is unix used?

0 Answers  


Categories