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

11 lines
101 B
Bash

#!/bin/bash
i=1;
j=$#;
while [ $i -le $j ]
do
echo "Username - $i: $1";
i=$((i + 1));
shift 1;
done