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 page fault? Its types?

0 Answers  


How the Kernel handles the fork() system call in traditional Unix and in the System V Unix, while swapping?

0 Answers  


how do you move a backgrounnd job to forward?

3 Answers   Cap Gemini,


How do you kill a job in unix?

0 Answers  


How unix is used?

0 Answers  






How is windows different from unix?

0 Answers  


What is grep|sort give example?

0 Answers  


Name the key features of the bourne shell.

0 Answers  


Explain some of the fundamental concepts of unix?

0 Answers  


command to view process running?

8 Answers   TCS,


Is unix written in c?

0 Answers  


How to create files in unix?

0 Answers  


Categories