I have a string like New\x20Folder
. Special characters is represented by their codes. I'd like to transform the string into quoted form: "New Folder"
.
The only available tools are bash and bunch of standard utilities like sed.
The first form is produced by the udev environment variable ID_FS_LABEL_ENC
. The needed form is consumed by the autofs config file. It expects quoted strings.