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

What does && mean in linux?

557


What are the options of wc command?

543


What is tail command in linux?

538


What is df -i command?

548


What does mkdir mean?

634






What is tty in linux process?

508


What is ulimit command?

605


What is pwd in linux command?

699


What command would you use to check how much memory is being used by linux?

550


How do you clear the screen in linux?

538


Does linux cp command overwrite?

582


If we transfer 100 files by ftp to remote server, how to know the files are successfully transfer or some file are not transferred?

544


When and how linux developed?

566


What does grep grep do?

515


How can we increase disk read performance in single command in Linux?

564