dcsimg
Linux Today: Linux News On Internet Time.




More on LinuxToday


How to Increment and Decrement Variable in Bash

Aug 13, 2019, 07:00 (0 Talkback[s])
(Other stories by Linuxize)

One of the most common arithmetic operations when writing Bash scripts is incrementing and decrementing variables. This is most often used in loops as a counter, but it can occur elsewhere in the script as well.

Complete Story