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 is unix used for?

1 Answers  


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

5 Answers   IBM,


What do you understand by the term single user system?

1 Answers  


List some features of unix.

1 Answers  


How to find the path in unix?

1 Answers  


What is unix operating system used for?

1 Answers  


What is a directory?

1 Answers  


Explain pid.

1 Answers  


What is the main goal of the Memory Management?

1 Answers  


What is meant by the term super user?

1 Answers  


What do you understand by the term wild-card interpretation?

1 Answers  


What is unix full form?

1 Answers  


Categories