Created
September 1, 2018 01:18
-
-
Save jurandysoares/0b53e7c0381af299088d82cdcab76b46 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
last -w | \ | |
grep 'Aug 31' | \ | |
awk '{print $1}' | \ | |
sort -u | \ | |
while read user; | |
do | |
grep $user /etc/passwd | cut -d: -f5; | |
done | sort -u |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment