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.




[EMAIL PROTECTED] 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@gnu.org>.
[EMAIL PROTECTED] rpms.pdinc.us]$ find | perl -ne 'm/(.+)\/.+\.rpm$/ and print $1, 
"\n";' | sort -u | xargs -l echo
./SRPMS
./foo bar
./i386
[EMAIL PROTECTED] rpms.pdinc.us]$ find | perl -ne 'm/(.+)\/.+\.rpm$/ and print $1, 
"\n";' | sort -u | xargs -L1 echo
./SRPMS
./foo bar
./i386
[EMAIL PROTECTED] 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/

Reply via email to