delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/09/19/14:28:33

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 19 Sep 2005 14:27:29 -0400 (EDT)
From: Jason Pyeron <jpyeron AT pdinc DOT us>
To: cygwin AT cygwin DOT com
Subject: xargs and upstream bug?
Message-ID: <Pine.LNX.4.62.0509191418010.5295@ns.pyerotechnics.com>
MIME-Version: 1.0
X-IsSubscribed: yes

just checking to see if is just a cygwin issue or is up stream.

http://savannah.gnu.org/bugs/index.php?func=detailitem&item_id=14587


from man xargs:

  --max-lines[=max-lines], -L[max-lines]
      Use  at  most max-lines nonblank input lines per command line; max-lines defaults to 1 if omitted.
      Trailing blanks cause an input line to be logically continued on the next input line.  Implies -x.




[jpyeron AT mrlaptop rpms.pdinc.us]$ find | perl -ne 'm/(.+)\/.+\.rpm$/ and print $1, "\n";' | sort -u | xargs -L echo
xargs: invalid number for -l option
Usage: xargs [-0prtx] [-e[eof-str]] [-i[replace-str]] [-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] [--arg-file=file]
        [--version] [--help] [command [initial-arguments]]

Report bugs to <bug-findutils AT gnu DOT org>.
[jpyeron AT mrlaptop rpms.pdinc.us]$ find | perl -ne 'm/(.+)\/.+\.rpm$/ and print $1, "\n";' | sort -u | xargs -l echo
./SRPMS
./foo bar
./i386
[jpyeron AT mrlaptop rpms.pdinc.us]$ find | perl -ne 'm/(.+)\/.+\.rpm$/ and print $1, "\n";' | sort -u | xargs -L1 echo
./SRPMS
./foo bar
./i386
[jpyeron AT mrlaptop rpms.pdinc.us]$

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Partner & Sr. Manager             7 West 24th Street #100     -
- +1 (443) 921-0381                 Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you 
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019