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 / brian

Find ./aaa -type f -exec grep -l aaa {} \;

This will list the paths and file names containing the text aaa in any file in the directory named aaa.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the ‘ls’ command in linux

745


Main configuration file and command used for NFS enabling exported directories and deamons?

707


How do I permanently delete linux history?

696


What would be the result of the command paste -s dog cat?

721


what is the roles and responsibilities in linux system admin having 2yrs exp..?

3940


How do I overclock my cpu?

692


What are the examples of simple command?

710


What is linux pwd (print working directory) command?

685


How do I check my cpu speed?

750


What is #!/ Bin sh?

712


What does p mean linux?

728


Which command is used to see the online manual?

782


Explain trap command; shift command, getopts command of linux?

768


How do you create a text file in linux terminal?

687


Explain difference between swap partition and swap file?

671