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 do I find my unix os version?

0 Answers  


Name the different file types available with unix.

0 Answers  


In unix, what is echo used for?

0 Answers   BPL,


How do I run a shell script in unix?

0 Answers  


What is directory unix?

0 Answers  






Enlist common shells with their indicators.

0 Answers  


What is unix language?

0 Answers  


Which is a form of interprocess communication in unix?

0 Answers  


Differentiate multiuser from multitask.

0 Answers  


Is darwin unix?

0 Answers  


How to remove the directory in unix?

0 Answers  


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

0 Answers  


Categories