On Fri, 17 Sep 2010 14:08:18 -0400 (EDT), Albretch Mueller wrote: > > I need to: > ~ search for files using a pattern (say all files with a certain extension) > ~ then search inside each of the found files for a word or regexp pattern > ~ You could do this using find, cat and grep in a script, but I was > wondering about how could you do it with a oneliner
Search all files under the home directory (recursively) with an extension of .txt for the keyword "xorg": grep -r xorg ~/*.txt -- .''`. Stephen Powell : :' : `. `'` `- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1630941229.67671.1284753074424.javamail.r...@md01.wow.synacor.com