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


Please Help Members By Posting Answers For Below Questions

Which Command used to lock user password in Linux?

569


What is df command in linux?

544


Main configuration file and command used for NFS enabling exported directories and deamons?

510


What is difference between comm and CMP command?

527


How find ip address linux?

558






How do you clear the screen in linux?

544


How to recover /etc/passwd file and /etc/shadow file?

552


How can you check the amount of lines in a file?

543


What is free linux?

577


What does uname do in linux?

545


Explain difference between nfs soft and hard mouniting points?

512


How do I navigate in cmd?

543


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?

532


What is an os command?

567


The head command writes the how many lines of a file to screen?

553