diff options
author | crupest <crupest@outlook.com> | 2020-10-12 21:01:59 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-10-12 21:01:59 +0800 |
commit | dfbc0ab51d29d2d175e03134229669f8fc91280b (patch) | |
tree | 5fe52b88399440e8021dcddb31db7f917b292d57 /works/life/2020-algorithm-contest/zip.bash | |
parent | fba17db49e084305921de3a3de4d6177d519d377 (diff) | |
download | crupest-dfbc0ab51d29d2d175e03134229669f8fc91280b.tar.gz crupest-dfbc0ab51d29d2d175e03134229669f8fc91280b.tar.bz2 crupest-dfbc0ab51d29d2d175e03134229669f8fc91280b.zip |
import(life): Add 2020-algorithm-contest.
Diffstat (limited to 'works/life/2020-algorithm-contest/zip.bash')
-rw-r--r-- | works/life/2020-algorithm-contest/zip.bash | 11 |
1 files changed, 11 insertions, 0 deletions
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 |