Convert Chinese character in svn URL

470阅读 0评论2014-08-11 weilanse
分类:LINUX

URL=`svn info | grep URL | cut -c6- `
printf $(echo -n $URL | sed 's/\\/\\\\/g;s/\(%\)\([0-9a-fA-F][0-9a-fA-F]\)/\\x\2/g')"\n"
上一篇:Fixed Ubuntu apt-get update issue
下一篇:linux shell 字符串操作(长度,查找,替换)详解