unixy scripts to help you solve that famous word puzzle game
whatToDo: allow overriding threshold
| -rwxr-xr-x | whatToDo.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/whatToDo.sh b/whatToDo.sh index 8c93daf..9b86e7b 100755 --- a/whatToDo.sh +++ b/whatToDo.sh @@ -1,7 +1,7 @@ #!/bin/sh LIST="$(cat -)" -if test "$(echo "$LIST" | wc -l)" -lt 13; then +if test "$(echo "$LIST" | wc -l)" -lt ${2:-13}; then # Get the answer on your next guess echo "$LIST" else |