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

Answer Posted / supriya

grep 'word1|word2' <filename>

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the best free unix based os?

597


What is disk block allocation in unix?

582


How to check logs in unix?

641


How to remove certain lines from a file in Unix?

639


What does cd mean in unix?

598






What is the main goal of the Memory Management?

652


Which mode executes the fault handler?

687


You have a file called tonky in the directory honky. Later you add new material to tonky. What changes take place in the directory, inode, and file?

815


Differentiate between paging and swapping?

582


Who owns unix?

580


Is it possible to create new a file system in UNIX?

712


What is directory unix?

603


What is piping?

608


What is unix shell scripting used for?

560


Define a process group.

625