summaryrefslogtreecommitdiff
path: root/botchcli
diff options
context:
space:
mode:
authorNæþ'n Lasseter <Næþ'n Lasseter nathan@bytemark.co.uk>2016-09-29 14:20:52 +0100
committerNæþ'n Lasseter <Næþ'n Lasseter nathan@bytemark.co.uk>2016-09-29 14:20:52 +0100
commit0c8741059abcaaed99e627e42b99c50a17abbf08 (patch)
treeaa3e5df103066eb68d39fea0b88db68ceb5570d5 /botchcli
parente6e6fe3cd13aaecf83cf3105c3fcd81db97481b5 (diff)
New scripts
Diffstat (limited to 'botchcli')
-rwxr-xr-xbotchcli6
1 files changed, 4 insertions, 2 deletions
diff --git a/botchcli b/botchcli
index 5dfa0f7..0d630b2 100755
--- a/botchcli
+++ b/botchcli
@@ -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