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

How do you make programs portable on unix and dos under such circumstances?

0 Answers  


What are the four components of the unix file system?

0 Answers  


What is a unix file?

0 Answers  


What are the criteria for choosing a process for swapping out of the memory to the swap device?

0 Answers  


Explain a path in unix.

0 Answers  






Is used to create ordinary files on any unix system?

0 Answers  


What are the hidden files in unix?

0 Answers  


Explain different types of Unix systems.

0 Answers  


How to remove the directory in unix?

0 Answers  


How do we change file access permissions?

0 Answers  


Is unix an operating system?

0 Answers  


What are the features and benefits of unix?

0 Answers  


Categories