systemd-escape
Escape strings for usage in systemd unit names. tldr-pages
On Linux
Linux
Escape the given text
systemd-escape textIdentifyReverse the escaping process
systemd-escape --unescape textIdentifyTreat the given text as a path
systemd-escape --path textIdentifyAppend the given suffix to the escaped text
systemd-escape --suffix suffix textIdentifyUse a template and inject the escaped text
systemd-escape --template template textIdentify