blob: 34521b19029649ae50ddacd437f09319a97c70c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
cd $1
if [ ! -f ../pts-shared/pts-trondheim.wav ]
then
tar -xvf ../pts-shared/pts-trondheim-wav.tar.gz -C ../pts-shared/
fi
cat > gzip_bigfile <<EOT
#!/bin/sh
for i in 1 2 3 4 5 6 7 8; do cat ../pts-shared/pts-trondheim.wav; done|gzip -c >/dev/null
EOT
chmod +x gzip_bigfile
cat > compress-gzip <<EOT
#!/bin/sh
/usr/bin/time -f "Gzip Compress Time: %e Seconds" ./gzip_bigfile 2>&1
EOT
chmod +x compress-gzip
|