Hs QuienVino: Difference between revisions
From HSS
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
user=$(basename "$dir") |
user=$(basename "$dir") |
||
lastlog -u "$user" | tail -n 1 ; |
lastlog -u "$user" | tail -n 1 ; |
||
done |
|||
do |
|||
</pre> |
</pre> |
||
Latest revision as of 22:41, 25 January 2024
código
#!/bin/sh # for dir in /home/*; do user=$(basename "$dir") lastlog -u "$user" | tail -n 1 ; done