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

How do I run a command in linux?

554


How do I find the process id in linux?

531


Where can I find bash in linux?

546


What is difference between sh and bash?

514


What is tail command in linux?

540






What is Data Command?

616


what is the fastest way to enter a series of commands from the command-line in linux

530


Is python faster than bash?

570


Brief about the command nn?

605


What are the ms dos commands?

527


What is the default number of shell commands saved in the history list of .cshrc file?

554


What is clang tidy?

575


How do I change shell in linux?

525


Describe the mknod command and when you’d use it.

547


How do you create a blank file in linux?

511