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

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

 



On Sun, 7 Oct 2007, Tim wrote:

> On Sun, 2007-10-07 at 09:27 -0400, Robert P. J. Day wrote:
> > Please specify options before other arguments.
>
> 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

ah, now i see -- i was unaware that "-maxdepth" was officially an
"argument" as opposed to an "option".  thanks.

rday
-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://crashcourse.ca
========================================================================


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux