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 are the requirements for a swapper to work?

0 Answers  


What will happens when we don't call of bind()and listen() in a normal echo server ? Q.33 (b). What are the purposes of the three file descriptors on which the syslogd daemon listens and does I/O multiplexing?

1 Answers  


Who is founder of unix?

0 Answers  


What are the devices represented in unix?

0 Answers  


Explain the terms links and symbolic links with respect to unix?

0 Answers  


Which mode executes the fault handler?

0 Answers  


What is unix and its features?

0 Answers  


How to restrict NULL value in UNIX

0 Answers  


Is a form of interprocess communication in unix?

0 Answers  


Does windows 10 have unix?

0 Answers  


What are links and symbolic links in UNIX file system?

0 Answers  


What is unix computer?

0 Answers  


Categories