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

Answer Posted / umakanta

grep -w 'word1|word2' filename

Is This Answer Correct ?    8 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How unix is used?

481


How do I find a pattern in unix?

507


How to make a new directory in unix?

547


Explain piping.

504


How would you explain a kernel to a non-technical person?

541






What is difference between unix and windows?

487


What is unix used for?

516


How do I search for a grep file in unix?

487


What is af_unix?

474


How is unix different from linux?

555


How to reverse a string in Unix?

579


In what way the protection fault handler concludes?

539


What are the types of unix operating system?

493


Explain the different types of pathnames that are used in unix.

488


What are positional parameters in unix?

494