From facbe35827c16669b83223c480f8929c722690a1 Mon Sep 17 00:00:00 2001 From: Colin Okay Date: Sun, 14 Aug 2022 20:21:00 -0500 Subject: [add] threadcat-list.sh --- threadcat-list.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 threadcat-list.sh 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 -- cgit v1.2.3