Hi, Grant.
On Sun, Jul 17, 2011 at 12:32:42PM -0700, Grant wrote:
> My crontab deletes all files of a certain type in a certain folder
> with yesterday's date in the filename. It usually executes but
> sometimes fails with:
> /bin/rm: Argument list too long
> What would you do about this?
Use xargs - in place of
/bin/rm lots of files ......
Use
Lots_of_file_names | xargs rm
. xargs then calls rm several times with batches of filenames each time.
xargs is a standard Unix command.
> - Grant
--
Alan Mackenzie (Nuremberg, Germany).