how to find multiple string?

Answer Posted / sarvan

Use extended grep command

egrep 'searchstr1 | searchchstr2' file.txt

Is This Answer Correct ?    18 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you change directories in unix?

736


How is unix different from other operating system?

675


Differentiate between absolute and related path?

1131


What are the core concepts of unix

747


Is unix is a programming language?

705


What are the three main components of unix architecture?

754


What is unix inode?

677


What is the difference between a single dot and double dot in unix?

959


Is it possible to count number char, line in a file; if so, How?

936


What is the difference between nfs 3 and nfs 4?

757


Describe the term inode?

844


How do I find the port number of pid in unix?

674


How can you edit a large file without opening it in unix?

698


How do I run a .sh file in unix?

681


What is alias mechanism?

679