[Info-vax] MIPS vs. VUPS

Paul Sture nospam at sture.ch
Thu Aug 6 05:05:39 EDT 2015


On 2015-08-05, glen herrmannsfeldt <gah at ugcs.caltech.edu> wrote:
> Paul Sture <nospam at sture.ch> wrote:
>> On 2015-07-27, already5chosen at yahoo.com <already5chosen at yahoo.com> wrote:
>
> (snip on disk time vs. CPU compression time)
>
>> Not totally free, but close enough.
>  
>> A problem with gzip/gunzip is that they do their stuff in situ.  With
>> VMS Backup or tar you have the option of doing operations across
>> spindles to minimise disk head thrashing.
>
> gzip < file > /somewhere/else/file.gz

That works a treat and leaves the original in place.  I was half
expecting to need the --keep switch to avoid deleting the original
(this on OS X - the behaviour might differ elsewhere).

> depending on your shell, use a shell loop over files.
>
> foreach file ( * )
>    gzip < $file > /somewhere/else/$file.gz
> end

The syntax I got working in bash on OS X was this:

for file in  *
do
    gzip < $file > /somewhere/else/$filename
done

-- 
 If it jams - force it. If it breaks, it needed replacing anyway.



More information about the Info-vax mailing list