Afficher un message
Vieux 11/09/2007, 19h21   #6
Cyrus Kriticos
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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
  Réponse avec citation
 
Page generated in 0,04999 seconds with 9 queries