fixed finger list to allow ships with more than one word. goaccess package

This commit is contained in:
James Tomasino 2019-01-13 23:09:16 -05:00
parent e275397db6
commit f0d3e4a2c5
2 changed files with 3 additions and 2 deletions

View File

@ -4,12 +4,12 @@
# shellcheck disable=SC1091
. /etc/efingerd/log
printf "Users currently online:\\n"
who | cut -f 1 -d " " | sort -u | tr '\n' ' ' | sed 's/^/ /'
who | cut -f 1 -d " " | sort -u | tr '\n' ' ' | sed 's/^/ /'
printf "\\n\\nWho control these ships:\\n"
w="$(who | cut -f 1 -d ' ' | sort -u)"
s=$(
for line in $w; do
roster "$line" | awk '{ print $2 }'
roster "$line" | awk '{$1=""; print $0 }'
done
)
printf "%s" "$s" | sort -u | sed 's/^/ /'

View File

@ -15,6 +15,7 @@ finger
fish
fortune-mod
gcc
goaccess
gnutls-bin
irssi
jed