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 / m.krishna kumar
#cd aaa
#cat <file name> | grep aaa
this is work only if you know the file name otherwise it is
not use . other way is if you must count the file then find
the file name of the 50 file then use the above command.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
You wish to restore the file memo.ben which was backed up in the tarfile mybackup.tar. What command should you type?
What does mkdir mean in linux?
Explain about refer?
What is ls command and what it does?
Is cmake a compiler?
What command is used to check the number of files, disk space, and each user’s defined quota?
How do you save a file in linux?
What is the export command used for?
Suppose you try to delete a file using the rm command and the deletion fails. What could be the possible reason?
How use more command in linux?
What is shell scripting commands?
What is cat command in linux?
How do I know my linux shell version?
What is bash history linux?
How do I check disk space in linux?