Re: argument list too long

2008-02-27 Thread Erik Norgaard
Wojciech Puchar wrote: what is a limit of amount of arguments passed to program? is it hardwired or can be changed. i found it to be in order of few thousands parameteres searching google results in an article for linux http://www.linuxjournal.com/article/6060 gives some ideas to work

argument list too long

2008-02-27 Thread Wojciech Puchar
what is a limit of amount of arguments passed to program? is it hardwired or can be changed. i found it to be in order of few thousands parameteres ___ freebsd-questions@freebsd.org mailing list

Re: argument list too long

2008-02-27 Thread Mel
On Wednesday 27 February 2008 10:16:20 Erik Norgaard wrote: Then a sysctl -a seems to indicate it is also a kernel limitation on FreeBSD: kern.argmax: 262144 I'm not certain that this is the limit of command line arguments, and I haven't tried to set it. Nor is it clear to me if this is

Re: argument list too long

2008-02-27 Thread Giorgos Keramidas
On 2008-02-27 10:16, Erik Norgaard [EMAIL PROTECTED] wrote: Wojciech Puchar wrote: what is a limit of amount of arguments passed to program? is it hardwired or can be changed. i found it to be in order of few thousands parameteres searching google results in an article for linux

Re: argument list too long

2008-02-27 Thread Wojciech Puchar
one can easily write: find . -name '*.ogg' | \ while read file ; do \ blah ${file} done xargs(1) is another popular tool for processing large argument lists: find -name '*.ogg' | xargs blah unless program blah starts slowly, and it's better to

Re: argument list too long

2008-02-27 Thread Giorgos Keramidas
On 2008-02-27 12:49, Wojciech Puchar [EMAIL PROTECTED] wrote: one can easily write: find . -name '*.ogg' | \ while read file ; do \ blah ${file} done xargs(1) is another popular tool for processing large argument lists: find -name '*.ogg' | xargs blah

Re: argument list too long

2008-02-27 Thread RW
On Wed, 27 Feb 2008 13:15:51 +0200 Giorgos Keramidas [EMAIL PROTECTED] wrote: It is worth noting, however, that there are usually fairly easy ways to work with huge lists of command-line arguments. Instead of writing things like this, for example: for file in *.ogg ; do

Re: argument list too long

2008-02-27 Thread Giorgos Keramidas
On 2008-02-27 14:21, RW [EMAIL PROTECTED] wrote: On Wed, 27 Feb 2008 13:15:51 +0200 Giorgos Keramidas wrote: one can easily write: find . -name '*.ogg' | \ while read file ; do \ blah ${file} done If blah is interactive, it will try to take its input from

Re: argument list too long

2008-02-27 Thread Dan Nelson
In the last episode (Feb 27), Wojciech Puchar said: one can easily write: find . -name '*.ogg' | \ while read file ; do \ blah ${file} done xargs(1) is another popular tool for processing large argument lists: find -name '*.ogg' | xargs blah unless

Re: argument list too long

2008-02-27 Thread Wojciech Puchar
2000 to do the rest. That's less than xargs's default of 5000 :) The xargs manpage explains it all. with this defaults i've got argument list too long because every argument is 70-80 bytes by average. thanks for all help! ___ freebsd-questions

Re: argument list too long

2008-02-27 Thread Dan Nelson
In the last episode (Feb 27), Wojciech Puchar said: 2000 to do the rest. That's less than xargs's default of 5000 :) The xargs manpage explains it all. with this defaults i've got argument list too long because every argument is 70-80 bytes by average. Hm. That shouldn't happen, since

Re: argument list too long

2008-02-27 Thread Wojciech Puchar
sorry i wrongly described what i've did. i should say that my total list was about 5000 positions, and xargs -n 2000 solved this. now i tested - xargs without -n works OK too. thanks! ___ freebsd-questions@freebsd.org mailing list

Re: rm - Argument list too long

2006-01-29 Thread RW
: find . -name 'sess.*' -delete While that's good advice, it doesn't answer the question of argument list too long. Yes, it does. The glob is expanded by find, the argument list too long problem occurs when the glob is expanded by the shell. The short answer is read ``man xargs

Re: rm - Argument list too long

2006-01-28 Thread Kirk Strauser
On Friday 27 January 2006 17:52, Paul Schmehl wrote: for files in *.* do rm $files done Don't ever, *EVER* blindly unlink glob expansions. It's bad for you. Instead, use something like: find . -name 'sess.*' -delete -- Kirk Strauser pgpepCmOuaBna.pgp Description: PGP signature

Re: rm - Argument list too long

2006-01-28 Thread Bill Campbell
, it doesn't answer the question of argument list too long. The short answer is read ``man xargs''. find . | xargs command Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Systems, Inc. URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way FAX:(206) 232-9186

rm - Argument list too long

2006-01-27 Thread FlashWebHost.com
Hi, I am getting error Argument list too long. when deleting files from /tmp directory. server20# uname -a FreeBSD server20.hosthat.com 5.4-RELEASE FreeBSD 5.4-RELEASE #1: Tue Oct 18 06:28:41 GMT 2005 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SERVER20 i386

Re: rm - Argument list too long

2006-01-27 Thread Paul Schmehl
--On Saturday, January 28, 2006 05:04:00 +0530 FlashWebHost.com [EMAIL PROTECTED] wrote: Hi, I am getting error Argument list too long. when deleting files from /tmp directory. server20# uname -a FreeBSD server20.hosthat.com 5.4-RELEASE FreeBSD 5.4

Re: rm - Argument list too long

2006-01-27 Thread RW
On Friday 27 January 2006 23:34, FlashWebHost.com wrote: Hi, I am getting error Argument list too long. when deleting files from /tmp directory. server20# uname -a FreeBSD server20.hosthat.com 5.4-RELEASE FreeBSD 5.4-RELEASE #1: Tue Oct 18 06:28:41 GMT

Re: rm - Argument list too long

2006-01-27 Thread Philip Hallstrom
I am getting error Argument list too long. when deleting files from /tmp directory. server20# pwd /tmp server20# ls -l sess* /bin/ls: Argument list too long. server20# rm -f sess* /bin/rm: Argument list too long. server20

Re: cp/mv/etc : argument list too long ... I am sick of this

2005-12-06 Thread Giorgos Keramidas
On 2005-12-05 17:56, user [EMAIL PROTECTED] wrote: Ok, so I have some big directories with lots of files. If I do mv or cp, it always refuses, telling me: cp: argument list too long I very often find that I want to move around huge trees, including mostly source code, but compiled object

Re: cp/mv/etc : argument list too long ... I am sick of this

2005-12-06 Thread Giorgos Keramidas
On 2005-12-05 18:44, user [EMAIL PROTECTED] wrote: On Mon, 5 Dec 2005, David Kelly wrote: On Mon, Dec 05, 2005 at 05:56:22PM -0500, user wrote: [...] - since I live in 2005, what can I do to my FreeBSD system to upgrade it to handle the directories I have ? How do I fix this so I can

cp/mv/etc : argument list too long ... I am sick of this

2005-12-05 Thread user
Ok, so I have some big directories with lots of files. If I do mv or cp, it always refuses, telling me: cp: argument list too long so, no problem ... I get creative with things like this: for f in 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z ; do cp $f* /some/dir

Re: cp/mv/etc : argument list too long ... I am sick of this

2005-12-05 Thread Bill Campbell
On Mon, Dec 05, 2005, user wrote: Ok, so I have some big directories with lots of files. If I do mv or cp, it always refuses, telling me: cp: argument list too long so, no problem ... I get creative with things like this: for f in 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U

Re: cp/mv/etc : argument list too long ... I am sick of this

2005-12-05 Thread David Kelly
On Mon, Dec 05, 2005 at 05:56:22PM -0500, user wrote: [...] - since I live in 2005, what can I do to my FreeBSD system to upgrade it to handle the directories I have ? How do I fix this so I can do normal, simple command lines instead of butchered ridiculous hacks like above ? Upgrade the

Re: cp/mv/etc : argument list too long ... I am sick of this

2005-12-05 Thread Lothar Braun
user wrote: Ok, so I have some big directories with lots of files. If I do mv or cp, it always refuses, telling me: cp: argument list too long so, no problem ... I get creative with things like this: for f in 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z ; do cp $f

Re: cp/mv/etc : argument list too long ... I am sick of this

2005-12-05 Thread user
On Mon, 5 Dec 2005, David Kelly wrote: On Mon, Dec 05, 2005 at 05:56:22PM -0500, user wrote: [...] - since I live in 2005, what can I do to my FreeBSD system to upgrade it to handle the directories I have ? How do I fix this so I can do normal, simple command lines instead of butchered

Re: cp/mv/etc : argument list too long ... I am sick of this

2005-12-05 Thread Chris
user wrote: ... What I want to know is, how can I just use cp ? You are suggesting above that the limitation is part of the users environment, and that I should upgrade the user. I dn't know what you mean by that. I am root. How do I upgrade the user(s environment ?) thanks. Go back

Re: cp/mv/etc : argument list too long ... I am sick of this

2005-12-05 Thread Richard Tobin
The sysctl kern.argmax reflects the maximum argument list size. It's set to 65536, at least in 4.11, and is (I think) not changeable except by rebuilding the kernel with a different value for ARG_MAX. Is well and good that there be some limit to how much data one can pack on the command line

Re: cp/mv/etc : argument list too long ... I am sick of this

2005-12-05 Thread Pietro Cerutti
2005/12/6, Richard Tobin [EMAIL PROTECTED]: The sysctl kern.argmax reflects the maximum argument list size. It's set to 65536, at least in 4.11, just for info: kern.argmax: 262144 on FreeBSD 6.0-STABLE -- Pietro Cerutti [EMAIL PROTECTED] Beansidhe - SwiSS Death / Thrash Metal

Re: /bin/rm: Argument list too long.

2004-11-20 Thread Francisco Reyes
On Fri, 19 Nov 2004, Dennis Koegel wrote: find /foo/bar -type f -maxdepth 1 | xargs rm -n100 Although xargs is the most versatile solution for when having too many items listed, for just deleting find itself can do it.. find /foo/bar -n mask -delete ___

/bin/rm: Argument list too long.

2004-11-19 Thread Mipam
Hi, I tried to delete all files from a dir, however I got this message: /bin/rm: Argument list too long. So, no go. newfs is also no option, because the dir is not a seperate fs. Any hints exept for manual labour? Bye, Mipam. ___ [EMAIL PROTECTED

Re: /bin/rm: Argument list too long.

2004-11-19 Thread Dennis Koegel
On Fri, Nov 19, 2004 at 09:58:40AM +0100, Mipam wrote: I tried to delete all files from a dir, however I got this message: /bin/rm: Argument list too long. You probably did rm *, and * expanded to too many files. One way is to simply remove the directory completely (rm -r /foo/bar

Re: /bin/rm: Argument list too long.

2004-11-19 Thread Brian Bobowski
Mipam wrote: Hi, I tried to delete all files from a dir, however I got this message: /bin/rm: Argument list too long. So, no go. newfs is also no option, because the dir is not a seperate fs. Any hints exept for manual labour? Bye, Mipam. I gather it's rm * that's not working? If so, try

Re: /bin/rm: Argument list too long.

2004-11-19 Thread Ruben de Groot
On Fri, Nov 19, 2004 at 10:19:39AM +0100, Dennis Koegel typed: snip find /foo/bar -type f -maxdepth 1 | xargs rm -n100 or just ls | xargs rm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To

Re: Argument list too long: limitation in grep? bash? FreeBSD?

2002-12-26 Thread Dirk-Willem van Gulik
On Tue, 24 Dec 2002, Bill Moran wrote: other way of overcoming this limit? find . -name *.html | xargs grep someting Dw To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message

Re: Argument list too long: limitation in grep? bash? FreeBSD?

2002-12-26 Thread Kirk Strauser
At 2002-12-25T14:02:07Z, Bill Moran [EMAIL PROTECTED] writes: Ahhh ... so (making sure to understand this information so I can use it again later) the quotes tell find to expand the pattern, without quotes the shell tries to do it and results in the mentioned error. That's exactly correct.

Re: Argument list too long: limitation in grep? bash? FreeBSD?

2002-12-25 Thread Bill Moran
on some features that the www.php.net's search isn't really helping on (searching for __FILE__ doesn't search for __FILE__ ... it searches for file, and there's too many results) so I try: grep __FILE__ *.html and I get the error: -bash: /usr/bin/grep: Argument list too long

Re: Argument list too long: limitation in grep? bash? FreeBSD?

2002-12-25 Thread Shantanu Mahajan
*.html | and I get the error: | - -bash: /usr/bin/grep: Argument list too long | Is this a shortcoming of bash, grep or FreeBSD? I'm assuming | it's not grep, as the command: | find . -name *.html -print | xargs grep __FILE__ | yeilds: | - -bash: /usr/bin/find: Argument list too long try this one

Re: Argument list too long: limitation in grep? bash? FreeBSD?

2002-12-25 Thread Bill Moran
many results) so I try: | grep __FILE__ *.html | and I get the error: | - -bash: /usr/bin/grep: Argument list too long | Is this a shortcoming of bash, grep or FreeBSD? I'm assuming | it's not grep, as the command: | find . -name *.html -print | xargs grep __FILE__ | yeilds: | - -bash: /usr/bin

Re: Argument list too long: limitation in grep? bash? FreeBSD?

2002-12-25 Thread parv
in message [EMAIL PROTECTED], wrote Bill Moran thusly... From: Shantanu Mahajan [EMAIL PROTECTED] the wildcard, thus the limit doesn't affect the command. or maybe you can use locate Hadn't thought to try that, although I don't know how it would work. RTFM? locate(1)? given a path

Re: Argument list too long: limitation in grep? bash? FreeBSD?

2002-12-25 Thread Bill Moran
From: [EMAIL PROTECTED] (Gary W. Swearingen) find . -name '*.html' -print | xargs grep __FILE__ One might as well get in the habit of using the more robust find . -name '*.html' -print0 | xargs -0 grep __FILE__ Otherwise, the -print isn't needed at all; it's a default. Very true.

Argument list too long: limitation in grep? bash? FreeBSD?

2002-12-24 Thread Bill Moran
for __FILE__ ... it searches for file, and there's too many results) so I try: grep __FILE__ *.html and I get the error: -bash: /usr/bin/grep: Argument list too long Is this a shortcoming of bash, grep or FreeBSD? I'm assuming it's not grep, as the command: find . -name *.html -print | xargs grep __FILE__

Re: Argument list too long: limitation in grep? bash? FreeBSD?

2002-12-24 Thread paul beard
doesn't search for __FILE__ ... it searches for file, and there's too many results) so I try: grep __FILE__ *.html and I get the error: -bash: /usr/bin/grep: Argument list too long Is this a shortcoming of bash, grep or FreeBSD? I'm assuming it's not grep, as the command: find . -name *.html -print

Re: Argument list too long: limitation in grep? bash? FreeBSD?

2002-12-24 Thread Bill Moran
helping on (searching for __FILE__ doesn't search for __FILE__ ... it searches for file, and there's too many results) so I try: grep __FILE__ *.html and I get the error: -bash: /usr/bin/grep: Argument list too long Is this a shortcoming of bash, grep or FreeBSD? I'm assuming it's not grep

Re: Argument list too long: limitation in grep? bash? FreeBSD?

2002-12-24 Thread Kurt Bigler
the docs on some features that the www.php.net's search isn't really helping on (searching for __FILE__ doesn't search for __FILE__ ... it searches for file, and there's too many results) so I try: grep __FILE__ *.html and I get the error: -bash: /usr/bin/grep: Argument list too long

Re: Argument list too long: limitation in grep? bash? FreeBSD?

2002-12-24 Thread Greg 'groggy' Lehey
isn't really helping on (searching for __FILE__ doesn't search for __FILE__ ... it searches for file, and there's too many results) so I try: grep __FILE__ *.html and I get the error: -bash: /usr/bin/grep: Argument list too long Is this a shortcoming of bash, grep or FreeBSD? I'm assuming

Re: Argument list too long: limitation in grep? bash? FreeBSD?

2002-12-24 Thread Cliff Sarginson
the docs on some features that the www.php.net's search isn't really helping on (searching for __FILE__ doesn't search for __FILE__ ... it searches for file, and there's too many results) so I try: grep __FILE__ *.html and I get the error: -bash: /usr/bin/grep: Argument list too long

Re: Argument list too long: limitation in grep? bash? FreeBSD?

2002-12-24 Thread Jonathan Chen
On Tue, Dec 24, 2002 at 05:25:23PM -0500, Bill Moran wrote: [...] Is this a shortcoming of bash, grep or FreeBSD? I'm assuming it's not grep, as the command: find . -name *.html -print | xargs grep __FILE__ yeilds: -bash: /usr/bin/find: Argument list too long If you quote the *.html, ie