does anyone know how to add one to an integer with bash? I tried ++$i (name of the integer)

val=$(($val + 1))
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.