Hacker News new | ask | show | jobs
by bburky 3842 days ago
Nice trick. It looks like this is actually a POSIX shell feature too, so feel free to use this in portable shell scripts even.

Here's the rest of the parameter expansion options. I usually only remember half of them.

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3...