|
|
|
|
|
by olsgaarddk
1954 days ago
|
|
That's a really neat way of trimming the file extension, something that can end up being quite tedious to do with SED. Do you know of a cheatsheet that describes what all the percentage sign means and other things you can do with parameter expansions? |
|
https://wiki.bash-hackers.org/syntax/pe
https://tldp.org/LDP/abs/html/parameter-substitution.html
The zsh docs are good for the zsh specific expansions, but more man page than cheatsheet, though they do have an intro doc on it that's more cheatsheet like but less complete.
http://zsh.sourceforge.net/Doc/Release/Expansion.html
http://zsh.sourceforge.net/Intro/intro_12.html