diff options
author | Tom Smeding <tom@tomsmeding.com> | 2021-12-09 21:19:32 +0100 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2021-12-09 21:19:32 +0100 |
commit | 8d5debe81041eb0aea1f63c60189aa81a40cebde (patch) | |
tree | d06634af295c79539efc71b873483072ed74f601 /2021/9.sh | |
parent | 1d02c3d4dd9da29532dcc69af21fc58d21030fc8 (diff) |
9
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 |