bug-findutils
[Top][All Lists]
Advanced

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

xargs: possible bug(s)


From: Phil Fisher 02
Subject: xargs: possible bug(s)
Date: Tue, 26 Jan 2010 09:58:01 -0000

The following output was obtained as shown.  this does not seem to be in
accord
with the man pages.
If not bug, would appreciate response saying why not.

$ xargs --version
GNU xargs version 4.1.20

$ xargs --help
Usage: xargs [-0prtx] [-E eof-str] [-e[eof-str]] [-I replace-str]
       [-i[replace-str]] [-L max-lines] [-l[max-lines]] [-n max-args]
       [-s max-chars] [-P max-procs] [--null] [--eof[=eof-str]]
       [--replace[=replace-str]] [--max-lines[=max-lines]]
[--interactive]
       [--max-chars=max-chars] [--verbose] [--exit]
[--max-procs=max-procs]
       [--max-args=max-args] [--no-run-if-empty] [--version] [--help]
       [command [initial-arguments]]

$ files="a b c d e f g h i j"
$ print - $files | xargs -I {} -n 6 echo {}
xargs: invalid option -- I
Usage: xargs [-0prtx] [-E eof-str] [-e[eof-str]] [-I replace-str]
       [-i[replace-str]] [-L max-lines] [-l[max-lines]] [-n max-args]
       [-s max-chars] [-P max-procs] [--null] [--eof[=eof-str]]
       [--replace[=replace-str]] [--max-lines[=max-lines]]
[--interactive]
       [--max-chars=max-chars] [--verbose] [--exit]
[--max-procs=max-procs]
       [--max-args=max-args] [--no-run-if-empty] [--version] [--help]
       [command [initial-arguments]]

$ print - $files | xargs -i{} -n 6 echo
a b c d e f
g h i j
$ print - $files | xargs -i{} -n 6 echo {}
{} a b c d e f
{} g h i j

Expected output:
a b c d e f
g h i j

Thanks

respond to: address@hidden
CC to:  address@hidden

--
Phil Fisher -- UNIX admin (AIX/Linux) COBAL/CRIM Monarch House, Carphone
Warehouse
0208 617 5633 | address@hidden 




This communication together with any attachments transmitted with it ("this 
E-Mail") is intended only for the use of the addressee and may contain 
information which is privileged and confidential.  If the reader of this E-Mail 
is not the intended recipient or the employee or agent responsible for 
delivering it to the intended recipient you are hereby notified that any use, 
dissemination, forwarding, printing or copying of this E-Mail is strictly 
prohibited.  Addressees should check this E-mail for viruses.  The Company 
makes no representations as regards the absence of viruses in this E-Mail.  If 
you have received this E-Mail in error please notify our IT Service Desk 
immediately by e-mail at address@hidden  Please then immediately delete, erase 
or otherwise destroy this E-Mail and any copies of it.

Any opinions expressed in this E-Mail are those of the author and do not 
necessarily constitute the views of the Company.  Nothing in this E-Mail shall 
bind the Company in any contract or obligation.

For the purposes of this E-Mail "the Company" means The Carphone Warehouse 
Group Plc or Best Buy Europe Distributions Limited and/or any of their 
respective subsidiaries.

Please feel free to visit our website:  http://www.carphonewarehouse.com or 
http://www.phonehouse.com

The Carphone Warehouse Group Plc (Registered in England No. 3253714) 1 Portal 
Way, London W3 6RS





reply via email to

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