On 08/25/2011 07:05 AM, Feighner, Dustin S wrote:
Hello very smart greppers!!!
I am trying to run the current grep. Any ideas why its failing?
Yep, and it depends on the contents of your current directory.
The only thing I can tell is that it doesn't like the asterisk.
$ 29grep 'BKOPS' *
bash: /usr/bin/29grep: Invalid argument
Try:
echo grep 'BKOPS' *
to see what the shell globbed the * into, and why the resulting command
line resulted in something that grep doesn't like.
Then read this FAQ (it's for coreutils, but it applies equally well to
grep):
https://www.gnu.org/software/coreutils/faq/#I-have-a-file-_0027_002df_0027-and-it-affects-rm_002e
(several other FAQ on that page also talk about globbing issues, so it's
a good read)
--
Eric Blake [email protected] +1-801-349-2682
Libvirt virtualization library http://libvirt.org