I *love* #zsh nested parameter expansion:

for i in $(ls -1d /srv/vdr/%*/*/00001.ts); do
echo "$i\t\"${${${i#/srv/vdr/%}%%/*}//_/ }\""
done

No poor soul on earth can read this and it does exactly what I want 😂 (It prints file names of of #vdr recordings and attaches the name of the recorded movie in a more readable form, like:
/srv/vdr/%Wonder_Woman_1984/2025-02-08.23.07.7-0.rec/00001.ts "Wonder Woman 1984" )

You can not nest the parameter substitution in #bash, btw.

#shell #programming