From 073b261266ee1e26b450687121626b1d3009109e Mon Sep 17 00:00:00 2001 From: Robert Schade Date: Mon, 8 Apr 2024 13:46:34 +0200 Subject: [PATCH] compresion script --- compress_and_copy.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 compress_and_copy.sh diff --git a/compress_and_copy.sh b/compress_and_copy.sh new file mode 100644 index 0000000..f90b861 --- /dev/null +++ b/compress_and_copy.sh @@ -0,0 +1,13 @@ +ls *.dat > ll +l=`cat ll | wc -l` +for i in `seq 1 $l`; +do + line=`head -n $i ll | tail -n 1` + zstd -9 "$line" -o "$line".zstd + sha512sum "$line".zstd > "$line".zstd.sha512sum +done +cp -v *.zstd.sha512sum $1 +cp -vf timing* $1 +cp -v status* $1 +cp -v *.zstd $1 +echo "`hostname` has finished writeout"