there may occurs some error when running the following scripts,

If

For loop

1 -> 10 loop

  1. #! /bin/bash
  2. cont=10
  3. for ((i=1; i<=cont; ++i)); do
  4. echo '$i'
  5. done

While loop