[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Grep Question

From: Eric Blake
Subject: Re: Grep Question
Date: Thu, 25 Aug 2011 16:35:26 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110817 Fedora/3.1.12-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.12

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

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   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]