We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
I try to increment numbers prefixed with zeros. I used expr to convert them to decimal. Because bash thinks they are octal:
expr
$ x="0008" $ echo "$((x + 1))" -bash: 0008: value too great for base (error token is "0008") $ echo "$(expr "$x" + 1)" # <- works but throws SC2003 9