s to a number less than zero counts back from the end of the expanded value of $param.
When a negati... ${variable%pattern}
If the pattern matches the end of the variable's value, delete the shortest par... ${variable%%pattern}
If the pattern matches the end of the variable's value, delete the longest part... is beautiful" spirit of Unix -- they may push the envelope towards the "too simple to be worth a separ