Nice trick. It looks like this is actually a POSIX shell feature too, so feel free to use this in portable shell scripts even.<p>Here&#x27;s the rest of the parameter expansion options. I usually only remember half of them.<p><a href="http:&#x2F;&#x2F;pubs.opengroup.org&#x2F;onlinepubs&#x2F;9699919799&#x2F;utilities&#x2F;V3_chap02.html#tag_18_06_02" rel="nofollow">http:&#x2F;&#x2F;pubs.opengroup.org&#x2F;onlinepubs&#x2F;9699919799&#x2F;utilities&#x2F;V3...</a>