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
What does unix .profile contains?
Explain how do we change file access permissions?
How to restrict NULL value in UNIX
Explain the method of changing file access permission?
What is af_unix?
How does unix operating system works?
What is grep|sort give example?
Suppose I have one column with data smithjohnmichale the o/p should be smith,john, michale how we do in unix?
How does the kernel differentiate device files and ordinary files?
Which data structure is used to maintain the file identification?
How do I grep recursively in unix?
briefly describe the shell's responsibilities?
Is unix a language?
What are the hidden files in unix?
What does a pipe(|) do?