diff options
author | Næþ'n Lasseter <Næþ'n Lasseter nathan@bytemark.co.uk> | 2016-09-29 14:20:52 +0100 |
---|---|---|
committer | Næþ'n Lasseter <Næþ'n Lasseter nathan@bytemark.co.uk> | 2016-09-29 14:20:52 +0100 |
commit | 0c8741059abcaaed99e627e42b99c50a17abbf08 (patch) | |
tree | aa3e5df103066eb68d39fea0b88db68ceb5570d5 /botchcli | |
parent | e6e6fe3cd13aaecf83cf3105c3fcd81db97481b5 (diff) |
New scripts
Diffstat (limited to 'botchcli')
-rwxr-xr-x | botchcli | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,10 +1,11 @@ #!/bin/bash SUBCHAR=! +CMDNO=1 [[ "$*" =~ $SUBCHAR ]] && WORK=$* || WORK="$* $SUBCHAR" -echo -n "[botchcli] $WORK> " +echo -n "[botchcli ${CMDNO}] $WORK> " while read LINE; do if [ "x$LINE" == "x" ] ; then echo -n @@ -13,5 +14,6 @@ while read LINE; do else ${WORK/$SUBCHAR/$LINE} fi - echo -n "[botchcli] $WORK> " + CMDNO=$((${CMDNO} + 1)) + echo -n "[botchcli ${CMDNO}] $WORK> " done |