java-tutorials/linux-bash/command-line-arguments/src/main/bash/users-loop.sh

9 lines
86 B
Bash

#!/bin/bash
i=1;
for user in "$@"
do
echo "Username - $i: $user";
i=$((i + 1));
done