File: compress.pl

package info (click to toggle)
combblas 2.0.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 190,476 kB
  • sloc: cpp: 55,912; ansic: 25,134; sh: 3,691; makefile: 548; csh: 66; python: 49; perl: 21
file content (28 lines) | stat: -rwxr-xr-x 693 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/perl
#
# Script to compress all inputs 
#
$matrixname="betwinput_scale";
$transname="betwinput_transposed_scale";
$outname="bc_scale";
for($scale=27; $scale<=27; $scale++)
{
	$strtar = "tar -cvf ${outname}$scale.tar ${matrixname}$scale ${transname}$scale\n";
	print $strtar;
	system($strtar);
	
	$strzip = "pbzip2 -p8 -k -r ${outname}$scale.tar\n";
	print $strzip;
	system($strzip);

	$strsizetar = "ls -alh ${outname}$scale.tar\n";
	$strsizezip = "ls -alh ${outname}$scale.tar.bz2\n";
	print $strsizetar;
	print $strsizezip;
	system($strsizetar);
	system($strsizezip);

	$strdel = "rm ${matrixname}$scale ${transname}$scale ${outname}$scale.tar\n";
	print $strdel;
	system($strdel);
}