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

Answer Posted / nayak

grep -l "pattern" *

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is awk sed unix?

489


Suppose I have one column with data smithjohnmichale the o/p should be smith,john, michale how we do in unix?

464


Does mac use unix?

507


Explain the following statement, “it is not advisable to use root as the default login.”

511


What do you understand by the term single user system?

546






What is umask in unix?

491


What is the role of the kernel in unix?

568


How do I grep recursively in unix?

467


What are the advantages and disadvantages of unix operating system?

522


Explain Sticky bit?

574


What is the core of unix operating system?

503


How to know the information about a file?

523


What is unix explain its architecture?

578


What is a unix shell?

517


How to check the date in unix?

546