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
you wish to create a link to the /data directory in bob's home directory so you issue the command ln /data /home/bob/datalink but the command fails. What options hould you use in this command line to be successful.
What are system commands?
How do you insert comments in the command line prompt?
What is know about grep commands?
Which command is used to compare the files?
How do I check disk space in linux?
How can I check the exit status of my previous command in Linux operating system?
How do I know my linux shell version?
What are the basic commands in command prompt?
What does free command do in linux?
What is devops model?
How do I run multiple commands in linux?
How do I navigate in cmd?
Explain difference between nfs soft and hard mouniting points?
what is the fastest way to enter a series of commands from the command-line in linux