[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
On Sat, 2009-11-21 at 17:39 +0000, Gordon Henderson wrote: > Although grep these days has been bloated with it's own directory > recursion and filename globbing, which is utterly pointless IMO when the > tools to do this already existed, but newbie command-line weenies couldn't > be bothered to learn them </rant>, but there you are: > > grep -l -r --include='*.yaml' Transition . > > might work for you too. > > Gordon > if I do "grep Transition *.yaml" I get simon@frog2:~/.alexandria/My Library$ grep Transition *.yaml grep: invalid option -- '.' Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. but I've not tried the above yet. OK, I tried it and it works great. Ta. Simon -- The Mailing List for the Devon & Cornwall LUG http://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html