can be done by bash scripts, too.
Quick and dirty solution:
will print:
That is the real advantage of the new hash line. You can do everything, running bash commands (pearl, python, or what ever you want).
https://www.tutorialspoint.com/awk/index.htm
https://www.tutorialspoint.com/perl/index.htm
https://www.tutorialspoint.com/unix_commands/bash.htm
Quick and dirty solution:
Code:
#!/bin/bash
while read -r line;
do
printf $line | awk 'BEGIN { FS = "*" } ; { printf $4 ":" }'
printf $line | awk 'BEGIN { FS = "*" } ; { print $6 }' | perl -pe 's/(..)/chr(hex($1))/ge'
done < example2.22000
will print:
Code:
aef50f22801c:8381533406003807685881523
That is the real advantage of the new hash line. You can do everything, running bash commands (pearl, python, or what ever you want).
https://www.tutorialspoint.com/awk/index.htm
https://www.tutorialspoint.com/perl/index.htm
https://www.tutorialspoint.com/unix_commands/bash.htm