if i have one folder say aaa and that folder having 100
files from that 50 files there aaa word is written how to
find in which aaa is writen and without opening that file

Answer Posted / nixor

grep -rl aaa ./aaa/*

That would list the file name where the string aaa is
present. (-l switch)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you execute more than one command or program from a single command line entry?

562


Who whoami linux?

560


What is the fastest way to enter a series of commands from the command-line?

542


How do I get to root in linux?

554


Which are the linux directory commands?

565






What is the ipconfig command for linux?

527


What is in mkdir command?

546


What is the difference between find and locate command in linux?

546


What is p in mkdir?

572


What is clang llvm?

589


You wish to print the file vacations with 60 lines to a page. Which of the following commands will accomplish this?

504


Explain about the command lynx?

678


Explain about the command elm?

578


How many types of dos commands are there?

586


How commands work in linux?

524