how to use grep command to list find the records of a file
containg 10 different strings

Answer Posted / siva

try this command

egrep "string1|string2|string3" <filename.extn>

Is This Answer Correct ?    12 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which mode executes the fault handler?

773


Is unix multiuser?

631


What are the entities that are swapped out of the main memory while swapping the process out of the main memory?

758


What unix means?

688


Is unix a network operating system?

666


How do I check disk space in unix?

686


What are new features added in nfs4?

717


Is windows a unix operating system?

744


Explain a path in unix.

696


What are directories in unix?

687


What are the main features of unix operating system?

720


What is a filter in unix?

711


What is the difference between an absolute path and a relative path in unix?

784


Explain piping.

666


how to kernel protected memory?

2138