Use the "find" statement to select the files you want to process (man find
will explain) an then let find execute the mv or rm whatever you need.
Example:

Find . -name *tobedeleted* -exec rm {} \; -print 


The -exec will execute something, substituting the {} with the current file
name, the\; ends the execute parameters, -print will print the filename on
the console.


Hope this helps,

Andre


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: dinsdag 21 augustus 2007 15:55
To: [email protected]
Subject: [U2] AIX Argument list too long

Hi all.

This is a bit off-topic, but I believe the expertise is here. . .

I have routines that parse through Unix files in a directory and remove
them based on age. If the number of files exceeds some limit I've not been
able to narrow down, I get a response from the scripts that it can't do
the job because there's too many files in the directory.

Does anyone know:

1. what I'm talking about and what causes it?

2. how to solve this through some tunable parameter, preferrably not
requiring a kernel rebuild?

TIA,

-- 
Karl Pearson
Director of I.T.
ATS Industrial Supply, Inc.
[EMAIL PROTECTED]
http://www.atsindustrial.com
800-789-9300 x29
Local: 801-978-4429
Fax: 801-972-3888

"To mess up your Linux PC, you have to really work at it;
 to mess up a microsoft PC you just have to work on it."
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to