1 2 3 4 5 6 7 8 9 |
read -p "Enter name : " username echo $username for usuario in `cat /etc/passwd | cut -d ":" -f1` do if [ "$usuario" = "$username" ]; then numero=`echo $usuario | wc -c ` echo $numero -1 | bc fi done |