conver string to int bash code example Example: bash string to number Its enough with $((YOUR_STRING)). Now it's an integer.