4
modifications
Aucun résumé des modifications |
(JvCare Awk) |
||
Ligne 198 : | Ligne 198 : | ||
url[urllen] = '\0'; | url[urllen] = '\0'; | ||
return url; | return url; | ||
} | |||
==== Awk ==== | |||
BEGIN { | |||
base16 = "0A12B34C56D78E9F" | |||
} | |||
{ | |||
s = $2 | |||
for (i = 1; i < length(s); i += 2) { | |||
pos1 = index(base16, substr(s, i, 1)) | |||
pos2 = index(base16, substr(s, i + 1, 1)) | |||
url = url sprintf("%c", (pos1 - 1) * 16 + pos2 - 1) | |||
} | |||
print url | |||
} | } | ||
modifications