Re: Error using "xargs eval"
John wrote:
>
> Suppose I have a CGI script which receives a MAC address. I want to
> convert coded colons to colons.
>
> Is there any standard solution for that kind of problem?
$ PARAM_mac="01%3A0C%3A21%3A33%3A2A%3A22"
$ PARAM_mac="${PARAM_mac//%3A/:}"
$ echo $PARAM_mac
01:0C:21:33:2A:22
--
Best regards | "The only way to really learn scripting is to write
Cyrus | scripts." -- Advanced Bash-Scripting Guide
|