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 / nixor

grep -rl aaa ./aaa/*

That would list the file name where the string aaa is
present. (-l switch)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who linux commands?

764


How do I find the umask value in linux?

713


Does linux cp command overwrite?

813


How do I test my cpu speed?

685


How do you create a text file in linux?

791


How many linux commands are there?

814


What are two functions the move mv command can carry out?

808


What is mkdir m in linux?

730


What are the commands in linux?

718


What is SFC command?

666


What is build process?

734


What could possibly be the problem when a command that was issued gave a different result from the last time it was used?

722


How do I list all processes in linux?

716


What command should you use to check the number of files and disk space used and each user’s defined quotas?

810


How do I find my user id in linux?

706