Question from the Bash - Fundamentals test

Write a bash script that prints the numbers from 1 to 11.

Hard

In the following script:

function name
{
shift 1
counter=1
while true
do
echo "$counter"
((counter++))
if [ $counter = $1 ]
then
break;
fi
done
}
name $1 $2 $3

What should be run to get an enumeration of the digits 1-11?

Author: titouan lecampStatus: PublishedQuestion passed 209 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!