What is the meaning of $(( $i + 1)) ?

What is the meaning of $(( $i + 1)) ?Category: Linux EssentialsWhat is the meaning of $(( $i + 1)) ?
Linux Questions Staff asked 1 year ago

What is the meaning of $(( $i + 1)) ?

  • 1 will be added to the i variable
  • This will return the value of the next argument to the script
  • This runs the command stored in variable i
  • If i is 0, the loop will stop
  • This will return the value of the first argument to the script

About the author