RE: grep argument list too long...how to get around it?
From: Alexandru Colea (acolea_at_yahoo.com)
Date: 10/10/03
- Next message: Tore Aursand: "Re: working on time"
- Previous message: James Edward Gray II: "Re: traversing a variable with regex instead of a file"
- In reply to: Steve Grazzini: "Re: grep argument list too long...how to get around it?"
- Next in thread: David: "Re: grep argument list too long...how to get around it?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: "'Steve Grazzini'" <grazz@pobox.com>, "'Kevin Old'" <kold@kold.homelinux.com> Date: Fri, 10 Oct 2003 13:17:18 -0400
You can put arguments in a file and then open and parse the file inside
perl.
-Alex C.
-----Original Message-----
From: Steve Grazzini [mailto:grazz@pobox.com]
Sent: Friday, October 10, 2003 12:29 PM
To: Kevin Old
Cc: Dan Muey; beginners@perl.org
Subject: Re: grep argument list too long...how to get around it?
On Fri, Oct 10, 2003 at 12:37:02PM -0400, Kevin Old wrote:
> On Fri, 2003-10-10 at 11:46, Steve Grazzini wrote:
> > No. (It's ARG_MAX...)
>
> I'm running Mandrake 9.0 and my ARG_MAX is not set, so is it
> "unlimited"? If not, what is the default?
It's not an environment variable. (Check limits.h.)
And remember, that's not the *number* of files/arguments/whatever.
ARG_MAX is the total *memory* that can be used for a new process's
environment and argument list.
% export FOO=$( perl -le 'print "x" x 2**17' )
% ls
bash: /bin/ls: Argument list too long
-- Steve -- To unsubscribe, e-mail: beginners-unsubscribe@perl.org For additional commands, e-mail: beginners-help@perl.org
- Next message: Tore Aursand: "Re: working on time"
- Previous message: James Edward Gray II: "Re: traversing a variable with regex instead of a file"
- In reply to: Steve Grazzini: "Re: grep argument list too long...how to get around it?"
- Next in thread: David: "Re: grep argument list too long...how to get around it?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|