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

What can you tell about shell variables?

590


What is a regular file in unix?

590


How do I find my unix os version?

580


What a pipe?

648


How to get the last word from a line in Unix file?

616






Why unix terminals are called dummy terminals?

616


List the different types of files that can be made available with unix?

554


What are the core concepts of unix

624


What is unix kernel explain it?

592


What is called in unix?

564


Describe file systems in unix?

658


What is the full form unix?

638


What unix means?

586


How do I check disk space in unix?

566


How the Kernel handles the fork() system call in traditional Unix and in the System V Unix, while swapping?

607