Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

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.

992


What are system commands?

1089


How do you insert comments in the command line prompt?

1182


What is know about grep commands?

1164


Which command is used to compare the files?

999


How do I check disk space in linux?

1052


How can I check the exit status of my previous command in Linux operating system?

983


How do I know my linux shell version?

1092


What are the basic commands in command prompt?

1136


What does free command do in linux?

1119


What is devops model?

961


How do I run multiple commands in linux?

1054


How do I navigate in cmd?

996


Explain difference between nfs soft and hard mouniting points?

954


what is the fastest way to enter a series of commands from the command-line in linux

1077