Hi I need a script that will take a file, number each line in the file and then append the line number on the end of the file in hex. Ideally I want to be able to add a set increment for the number i.e. add 25 onto each line number:
cat map_175_r2.txt|awk 'NR{ $0 $0=++b+24 };{print}'|pg
This doesn't work for me as I need the line number at the END of each line and it also needs to be hex:
echo ""|awk '{ (printf "%x\n",10)}'= A (hex 10)
PLEASE can someone help?
Thanks
cat map_175_r2.txt|awk 'NR{ $0 $0=++b+24 };{print}'|pg
This doesn't work for me as I need the line number at the END of each line and it also needs to be hex:
echo ""|awk '{ (printf "%x\n",10)}'= A (hex 10)
PLEASE can someone help?
Thanks