how to find multiple string?
Answers were Sorted based on User's Feedback
Answer / sarvan
Use extended grep command
egrep 'searchstr1 | searchchstr2' file.txt
Is This Answer Correct ? | 18 Yes | 1 No |
Answer / satyaranjan samal
grep -e 'string 1' -e 'string 2' filename
Is This Answer Correct ? | 8 Yes | 2 No |
Answer / amedela chandra sekhar
fgrep 'searchstr1 | searchchstr2' file.txt
Is This Answer Correct ? | 9 Yes | 6 No |
What scheme does the Kernel in Unix System V follow while choosing a swap device among the multiple swap devices?
How do I grep recursively in unix?
Is unix os free?
What will be the result if we run the command #find /tmp - mtime -2 and #find /tmp -mtime +2
What is a unix shell?
Explain Sticky bit?
What are the basic responsibilities of a shell?
What do you understand by the term kernel?
Explain links and symbolic links.
Does apple run unix?
What is a shell?
Where is unix used?