what means the find warning about "non-option argument"?

Tim ignored_mailbox at yahoo.com.au
Sun Oct 7 15:43:27 UTC 2007


Tim:
>> You simply have to rearrange the command line, it'll be an error
>> message about syntax.  Type in the "options" before you add the
>> "arguments", like it tells you to.
>>
>> Look at the man file for the command you're playing with (man find), and
>> look at what are the options that you can use with that command.  Write
>> those parts of your command line first, then add your arguments
>> afterwards, "maxdepth" is an option, "type" is an argument.
>>
>>   e.g. Instead of:  find <dir> -type d -maxdepth 1
>>               Try:  find <dir> -maxdepth 1 -type d

Robert P. J. Day:
> ah, now i see -- i was unaware that "-maxdepth" was officially an
> "argument" as opposed to an "option".  thanks.

'tother way around...

"find" seems a particularly convoluted one, looking at its man file.

-- 
(This box runs FC5, my others run FC4 & FC6, in case that's
 important to the thread.)

Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.




More information about the fedora-list mailing list