1 2 3 4 5 6 7 8 9 |
#!/bin/ksh HOSTNAME=$(hostname) PASSWORD_FILE="/etc/passwd" echo "Listado de usuarios en $HOSTNAME" echo "--------------------------------" for username in $(cat $PASSWORD_FILE | cut -f1 -d:) do print $username done |
1 2 3 4 5 6 7 8 9 |
#!/bin/ksh HOSTNAME=$(hostname) PASSWORD_FILE="/etc/passwd" echo "Listado de usuarios en $HOSTNAME" echo "--------------------------------" for username in $(cat $PASSWORD_FILE | cut -f1 -d:) do print $username done |