seelog/seelog.sh

14 lines
178 B
Bash
Raw Normal View History

2019-12-12 21:56:02 +01:00
#!/bin/bash
path="/var/log/users"
if [ "$1" = "root" ] || [ "$1" = "" ]; then
file=$(cat $HOME/.log/last.txt)
else
file=$(cat /home/$1/.log/last.txt)
fi
tail -f $file
exit 0