fixed finger list to allow ships with more than one word. goaccess package
This commit is contained in:
parent
e275397db6
commit
f0d3e4a2c5
|
@ -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/^/ /'
|
||||
|
|
Loading…
Reference in New Issue