Here is a cool script to compress your mail files!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux