plgzip

mud++0.35/src/util/plgzip · 355 B

From the archive mud++0.35.tar.gz

Download the archive   « Back to the archive contents

#!/bin/sh
# Gzip all player files to conserve disk space
# Can be run from any directory 1 or 2 levels deep from main

cd ..
if [ -d player ]; then
	cd player
else
	cd ..
	if [ -d player ]; then
		cd player
	else
	echo Cannot find player directory
	exit
	fi
fi

for drct in [A-Z]
do
	for file in `ls -1 $drct/* | grep -v \.gz`
	do
		gzip $file
	done
done

Site Stats

Snippets: 1791
Codebases: 571