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
Which Command used to lock user password in Linux?
What is df command in linux?
Main configuration file and command used for NFS enabling exported directories and deamons?
What is difference between comm and CMP command?
How find ip address linux?
How do you clear the screen in linux?
How to recover /etc/passwd file and /etc/shadow file?
How can you check the amount of lines in a file?
What is free linux?
What does uname do in linux?
Explain difference between nfs soft and hard mouniting points?
How do I navigate in cmd?
You are required to restore the file memo.ben. It was backed up in the tar file MyBackup.tar. Which command would you use to do it?
What is an os command?
The head command writes the how many lines of a file to screen?