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 is $# in unix?
What will be the result if we run the command #find /tmp - mtime -2 and #find /tmp -mtime +2
How to get the last word from a line in Unix file?
Is windows a unix operating system?
Define the term directory?
What is the difference between an absolute path and a relative path in unix?
In what way the validity fault handler concludes?
What is source unix?
What will happens when we don't call of bind()and listen() in a normal echo server ? Q.33 (b). What are the purposes of the three file descriptors on which the syslogd daemon listens and does I/O multiplexing?
What does ls lrt in unix?
List a few significant features of unix?
How to copy files from one directory to other in unix?