I have a script I found that I am trying to adapt to read the ASCII characters of a file and convert them all to decimal. The script works but I can not tell the values apart once they are printed. I.E: 101961245175 but I need: 101:96:12:45:175
I don't care what the separator value is I just figured a colon would do well.
Here is the script I have;
Thanks,
Cybex
I don't care what the separator value is I just figured a colon would do well.
Here is the script I have;
Perl:
perl -lne 'chomp; @x=unpack("C* ",$_); print @x' test.txt
Thanks,
Cybex