Here is a cool script to compress your mail files!

Jake Johnson jake at plutoid.com
Sat May 29 23:53:42 UTC 2004


Here is a cool script for anyone that has really big email files and wants to have them compressed.


#!/bin/bash
for file in `ls | grep -v gz$ | grep -v sh$`
do
echo "Compressing $file..."
gzip -c $file >> $file.gz
rm $file
touch $file
done

-- 
Jake Johnson
http://www.plutoid.com





More information about the redhat-list mailing list