The Bash while loop. Print ‘this is a test’ 10 times.
#!/bin/bash
x = "0"
while [ $x -lt 10 ]
do
echo 'this is a test'
x = $[$x + 1]
done
The Bash while loop. Print ‘this is a test’ 10 times.
#!/bin/bash
x = "0"
while [ $x -lt 10 ]
do
echo 'this is a test'
x = $[$x + 1]
done