Inside an solaris utility(change x86 hostid), there is some perl code as following:
echo "0x0ddb00b5" | /usr/bin/perl -e 'print("\""); while(<STDIN>){chop +;tr/!-~/P-~!-O/;print $_;} print("\"\n"); exit 0;'
What is the "tr/!-~/P-~!-O/" doing? I have difficulty to find the explanation.
Thanks in advance!
In reply to what is the translation? by roadtest
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |