From dfbc0ab51d29d2d175e03134229669f8fc91280b Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 12 Oct 2020 21:01:59 +0800 Subject: import(life): Add 2020-algorithm-contest. --- works/life/2020-algorithm-contest/zip.bash | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 works/life/2020-algorithm-contest/zip.bash (limited to 'works/life/2020-algorithm-contest/zip.bash') diff --git a/works/life/2020-algorithm-contest/zip.bash b/works/life/2020-algorithm-contest/zip.bash new file mode 100644 index 0000000..519dd45 --- /dev/null +++ b/works/life/2020-algorithm-contest/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