[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Patch #41] Do all rm's in one command with --mode=clean
From: |
Jeff Dubrule |
Subject: |
Re: [Patch #41] Do all rm's in one command with --mode=clean |
Date: |
Tue, 23 Oct 2001 16:54:14 -0400 |
User-agent: |
Mutt/1.2.5i |
Hmm. I was having trouble trying to feed 'xargs' it's data without
actually putting it all on a command-line at some point(silly, eh?).
In any event, perhaps something like this will work:
for each file
...
$rmfiles=$rmfiles $some_files_to_delete
...
if 100 < -l "$rmfiles" then
$show "$rm $rmfiles"
$run $rm || exit_status=1
$rmfiles=
fi
done
if test -n "$rmfiles"; then
$show "$rm $rmfiles"
$run $rm || exit_status=1
$rmfiles=
fi
Is there a less random number than 100, that would be a reasonable
minimum?
-jeff
- Re: [Patch #41] Do all rm's in one command with --mode=clean, Jeff Dubrule, 2001/10/22
- Re: [Patch #41] Do all rm's in one command with --mode=clean, Robert Boehne, 2001/10/23
- Re: [Patch #41] Do all rm's in one command with --mode=clean,
Jeff Dubrule <=
- Re: [Patch #41] Do all rm's in one command with --mode=clean, Robert Boehne, 2001/10/24
- Re: [Patch #41] Do all rm's in one command with --mode=clean, Jeff Dubrule, 2001/10/24
- Re: [Patch #41] Do all rm's in one command with --mode=clean, Robert Boehne, 2001/10/25
- Re: [Patch #41] Do all rm's in one command with --mode=clean, Olly Betts, 2001/10/26
- Re: [Patch #41] Do all rm's in one command with --mode=clean, Gary V. Vaughan, 2001/10/27
- Re: [Patch #41] Do all rm's in one command with --mode=clean, Robert Boehne, 2001/10/29