From 3e79ef41cefec10e7f46b184907edffb13c2ecff Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 27 Mar 2021 15:42:14 +0800 Subject: import(life): Add algorithm contest 3. --- works/life/algorithm-contest-3/zip.bash | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 works/life/algorithm-contest-3/zip.bash (limited to 'works/life/algorithm-contest-3/zip.bash') diff --git a/works/life/algorithm-contest-3/zip.bash b/works/life/algorithm-contest-3/zip.bash new file mode 100755 index 0000000..519dd45 --- /dev/null +++ b/works/life/algorithm-contest-3/zip.bash @@ -0,0 +1,11 @@ +if [ $# -ne 1 ] +then + echo "please provide exact one argument, problem number" + exit 1 +fi + +pushd ./output/$1/ +zip ./$1.zip *.in *.out +popd + +mv ./output/$1/$1.zip ./output -- cgit v1.2.3