grep is always recursive
Florian Diesch
diesch at spamfence.net
Sun Jan 25 20:49:27 UTC 2009
Hal Burgiss <hal at burgiss.net> wrote:
> On Sun, Jan 25, 2009 at 09:08:27AM -0700, Smoot Carl-Mitchell wrote:
>>
>> The GNU option processor does not care where an option appears in the
>> command line which is a little odd and not what the documentation
>> suggests is the correct syntax. e.g. options come first before file
>> names, etc. Anything with a leading "-" is considered an option. Try
>> this sometime:
>>
>> ls <file> -l <another_file>
>
> It certainly seems counter-intuitive to me, if not potentially
> dangerous. Imagine the accidental chaining of options with 'rm'.
Anything after '--' is not interpreted as an option, so you may use
rm -- *
Florian
--
<http://www.florian-diesch.de/>
-----------------------------------------------------------------------
** Hi! I'm a signature virus! Copy me into your signature, please! **
-----------------------------------------------------------------------
More information about the ubuntu-users
mailing list