I would like to know the more clearly way for remove the last two characters of a string, without calling external commands, I used something like this.A=GOOD MORNINGecho ${A:0:$((${#A}-2))}GOOD MORNI
how to remove the last two characters of string
linux;bash