On Friday 23 March 2012 20:52:49 Dan wrote: > dw@circe:~$ grep '^abc.*$\?' testfile > abc;klj? > abcasdf > dw@circe:~$ grep "^abc.*$\?" testfile > abc;klj? > abcasdf > dw@circe:~$ grep ^abc.*$\? testfile > dw@circe:~$
run `set -x` before these commands to see what exactly is being passed to grep. the quoting/expansion rules of the shell are probably changing what grep is actually seeing. -mike
signature.asc
Description: This is a digitally signed message part.
