Skip to content

Instantly share code, notes, and snippets.

@itto-ki
Last active July 22, 2018 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itto-ki/dd42730cf48bf9be9a189eb2aa639d41 to your computer and use it in GitHub Desktop.
Save itto-ki/dd42730cf48bf9be9a189eb2aa639d41 to your computer and use it in GitHub Desktop.
#!/bin/bash
CURRENT_DIR_PATH=$(pwd)
DIRS=(`echo $CURRENT_DIR_PATH | tr '/' ' '`)
CONTEST=${DIRS[${#DIRS[@]}-2]}
NUMBER=${DIRS[${#DIRS[@]}-1]}
atarg $CONTEST $NUMBER $1 $(pwd)/$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment