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

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

 



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

Though I found it a bit confusing that the path must come first (the
error message says "paths must precede expression", when the start of
man file shows this syntax:

   find [-H] [-L] [-P] [path...] [expression]

Which shows some *OTHER* options before the path, and before the
expression (different options and arguements).

-- 
(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.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux