aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorColin Okay <colin@cicadas.surf>2022-08-14 20:21:00 -0500
committerColin Okay <colin@cicadas.surf>2022-08-14 20:21:00 -0500
commitfacbe35827c16669b83223c480f8929c722690a1 (patch)
tree2dbbf0e2631fbc8bd2ed5e22da50233bab63279a
parentb801c7082d48f35321a39d28d9a9e74767a3461d (diff)
[add] threadcat-list.sh
-rwxr-xr-xthreadcat-list.sh10
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