SyntaxFix
Write A Post
Hire A Developer
Questions
To remove four characters from the end of the string use ${var%????}.
${var%????}
To remove everything after the final . use ${var%.*}.
.
${var%.*}