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 to find out what processes are running in the background in unix?

0 Answers  


How can you kill a process in unix?

0 Answers  


What are the basic responsibilities of a shell?

0 Answers  


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

0 Answers  


Is windows a unix operating system?

0 Answers  






What is meant by u-area?

0 Answers  


How do you change directories in unix?

0 Answers  


What is unix environment?

0 Answers  


How to install unix on windows 10?

0 Answers  


What are the common directory management commands in unix?

0 Answers  


command to show the space allocation of files?

3 Answers   HP,


Discuss briefly about the directory representation in unix.

0 Answers  


Categories