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

How to print/display the first line of a file in Unix?

0 Answers  


Is a directory unix?

0 Answers  


What does sort do in unix?

0 Answers  


What does unix like mean?

0 Answers  


How do I show only directories in unix?

0 Answers  






What is dot profile in unix?

0 Answers  


What uses unix?

0 Answers  


Why is it that it is not advisable to use root as the default login?

0 Answers  


Is a form of interprocess communication in unix?

0 Answers  


Can you explain what does the kernel do?

0 Answers  


What are conditions for a machine to support Demand Paging?

0 Answers  


What is unix buffer cache?

0 Answers  


Categories