D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] grep and dreadful command line skills

 

On Sun, 22 Nov 2009 17:42:15 -0000, Simon Robert <simon.robert@xxxxxxxxxxxxxxxxxxxxxx> wrote:
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.
Do the yaml files have funny names or something? if I do "grep a *.txt" (since i happened to have a load of txt files in ~) it works as expected.

or maybe you're using a different shell to me? mine is bash.

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