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

Define the term directory?

521


How can you count the number of characters and lines in a file?

534


Explain different types of Unix systems.

547


How to remove the directory in unix?

504


Why is unix better than windows?

503






Is unix still around?

472


Where is unix used today?

482


What is the architecture of unix operating system?

519


What scheme does the Kernel in Unix System V follow while choosing a swap device among the multiple swap devices?

535


What is standard unix streams ?

520


What is necessary before running a shell script from the terminal?

469


What is the significance of the superuser?

533


How the Kernel handles the copy on write bit of a page, when the bit is set?

555


Describe file systems in unix?

567


How to remove the last line/trailer from a file in Unix script?

535