Skip to main content
edited body
Source Link
Mandar Shinde
  • 3.4k
  • 11
  • 43
  • 59

On line 5: Change $x=(($x + 1)) to x=x=$(($x + 1)).

Instead of using an entire bash script, you can just use seq 1 50.

If the case were x=x=$(($x + 2)), you could use seq 1 2 50, where 2 denotes step/increment.

On line 5: Change $x=(($x + 1)) to x=(($x + 1)).

Instead of using an entire bash script, you can just use seq 1 50.

If the case were x=(($x + 2)), you could use seq 1 2 50, where 2 denotes step/increment.

On line 5: Change $x=(($x + 1)) to x=$(($x + 1)).

Instead of using an entire bash script, you can just use seq 1 50.

If the case were x=$(($x + 2)), you could use seq 1 2 50, where 2 denotes step/increment.

Source Link
Mandar Shinde
  • 3.4k
  • 11
  • 43
  • 59

On line 5: Change $x=(($x + 1)) to x=(($x + 1)).

Instead of using an entire bash script, you can just use seq 1 50.

If the case were x=(($x + 2)), you could use seq 1 2 50, where 2 denotes step/increment.