diff options
Diffstat (limited to '2021/9.sh')
-rwxr-xr-x | 2021/9.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/2021/9.sh b/2021/9.sh new file mode 100755 index 0000000..739d62d --- /dev/null +++ b/2021/9.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +if [[ $# -ge 1 ]]; then + if [[ $1 = c ]]; then + xsel -bo | ./9pre | ./9 + elif [[ $1 = - ]]; then + ./9pre | ./9 + else + echo >&2 "What are you even doing with your command line params" + ./9pre <9.in | ./9 + fi +else + ./9pre <9.in | ./9 +fi |