Skip to content

Commit

Permalink
compresion script
Browse files Browse the repository at this point in the history
  • Loading branch information
robertschade committed Apr 8, 2024
1 parent b44d06b commit 073b261
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions compress_and_copy.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 073b261

Please sign in to comment.