This is an old revision of the document!
To remove everything after and including the final '.' use: ${var%.*}
To remove the last 4 characters from 'string', use: new_string=${string::-4}
substitute either of two characters with one command
sed s'/[:=]/ /g'
Brackets mean “any one of”.