#!/bin/bash LIFE=042 # Will return 34 as LIFE is interpreted as octal echo $((LIFE)) # Force decimal representation LIFE=$((10#${LIFE})) # Should return the proper meaning of life echo $((LIFE))