Friday, March 25, 2016

Bash: Converting Percent-encoded String to Multibyte String

Command:

$ a='%E7%B9%94%E7%94%B0%E4%BF%A1%E9%95%B7'
$ echo -e "${a//%/\\x}"


Output:


織田信長