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
How do I check memory usage on linux?
What is the role of case sensitivity in affecting the way commands are used?
How to root mirror in linux?
Write a command that will do the following: -look for all files in the current and subsequent directories with an extension c,v -strip the,v from the result (you can use sed command) -use the result and use a grep command to search for all occurrences of the word orange in the files.
How does grep work in linux?
When and how linux developed?
How many interfaces(ethernet cards) are working using single command?
What is the symbol of linux?
What is du -s * | sort -k1,1rn | head command used for?
What is SFC command?
How do I start ms dos?
What is a good processor speed?
Brief about the command kill PID?
Which command will show you free/used memory? Does free memory exist on linux?
How do I create a .txt file?