For loop in bash shell. byAlFarhat •July 28, 2015 p6.sh #!/bin/bash i=0 for users in `cat /etc/passwd | awk -F: '{print $1}'` do echo "$((i++)): $user… Read more