[Gllug] Shell scripts

John Hearns john.hearns at cern.ch
Fri May 3 09:24:55 UTC 2002


On Fri, 2002-05-03 at 11:00, Jonathan Dye wrote:
> Hi,
> 
> I have a script that removes a load of files from a directory tree and then
> copies a load of files in to replace the removed ones (from several
> sources).  What I want to do is provide some sort of progress information
> and I thought I could do this by getting a list of the files that are going
> to be deleted and then deleting them one at a time and calculating the
> percentage of files deleted.
> This seems like a horrible idea as it would be spawning lots of processes so
> does anyone have any other suggestions?

Me jumps in with both feet as usual.
Use rsync with the --progress flag?

Is there a good reason you need to delete the files before
the copy?




-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list