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
What is a directory?
What are internal and external commands in unix?
How to calculate the number of words in a file?
Explain what is inode?
In what way the validity fault handler concludes?
What a pipe?
What does shebang mean in unix?
What are the main features of unix?
How unix is different from other operating systems?
What are shell variables?
How is unix different from other operating system?
What is process termination in unix?
How to remove the first line/header from a file in Unix?
Discuss the mount and unmount system calls ?
What are pipes and filters in unix?