Results 1 to 2 of 2
How can I cat each file in /root/super_apps/ and list each file that contain an occurrence of ".properties"?
I have 30 files in /root/super_apps/ sometimes I forget which files have ...
- 09-22-2010 #1Just Joined!
- Join Date
- Jul 2010
- Posts
- 15
Cat - Grep or both? How to do this
How can I cat each file in /root/super_apps/ and list each file that contain an occurrence of ".properties"?
I have 30 files in /root/super_apps/ sometimes I forget which files have .properties within them. This would make it easier to get just a list of those files.
Can someone help?
thanks!
- 09-23-2010 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Code:grep --recursive --files-with-matches "[.]properties" /root/super_apps/
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote