finding the presence of a word in a list of 'n' files
(pattern matching)

Answers were Sorted based on User's Feedback



finding the presence of a word in a list of 'n' files (pattern matching)..

Answer / nayak

grep -l "pattern" *

Is This Answer Correct ?    1 Yes 1 No

finding the presence of a word in a list of 'n' files (pattern matching)..

Answer / akshay chavan

sed -n '/matchingpattern/g' file1 file2...

Is This Answer Correct ?    5 Yes 8 No

Post New Answer

More Unix General Interview Questions

What is the use of unix?

1 Answers  


Describe a link in unix.

3 Answers  


Is a form of interprocess communication in unix?

1 Answers  


Is mac terminal unix?

1 Answers  


What are the file permissions and access modes in unix?

1 Answers  


Why unix terminals are called dummy terminals?

1 Answers  


How do you delete a file in unix?

1 Answers  


How to display the contents of a file?

1 Answers  


Explain a path in unix.

1 Answers  


What is grep|sort give example?

1 Answers  


What is the core of unix operating system?

1 Answers  


Why was unix invented?

1 Answers  


Categories