diff options
author | Colin Okay <colin@cicadas.surf> | 2022-08-14 20:21:00 -0500 |
---|---|---|
committer | Colin Okay <colin@cicadas.surf> | 2022-08-14 20:21:00 -0500 |
commit | facbe35827c16669b83223c480f8929c722690a1 (patch) | |
tree | 2dbbf0e2631fbc8bd2ed5e22da50233bab63279a | |
parent | b801c7082d48f35321a39d28d9a9e74767a3461d (diff) |
[add] threadcat-list.sh
-rwxr-xr-x | threadcat-list.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/threadcat-list.sh b/threadcat-list.sh new file mode 100755 index 0000000..e3ccd67 --- /dev/null +++ b/threadcat-list.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +CICADAS_USER=$1 + +if [ ! -z "${CICADAS_USER}" ]; then + ssh $CICADAS_USER@cicadas.surf "ls -lt /opt/threadcat/" | awk '{ s = ""; for (i = 6; i <= 9; i++) s = s $i " "; print s }' +else + echo You did not provide a user name + echo USAGE: threacat-list USER +fi |