#!/usr/bin/awk -f # # Oliver Fromme # # Print the latin1 character set in decimal, hexadecimal and octal. # Actually, it just prints all characters from 160 to 255, which # is whatever character set you have installed. It happens to be # latin1 or latin9 for me. :-) # BEGIN { cfirst = 160; clast = 255; columns = 4; colsize = int((columns + clast - cfirst) / columns); for (i = cfirst; i < cfirst + colsize; i++) { for (j = i; j <= clast; j += colsize) { printf "%3d 0x%02x 0%03o \"%c\"", j, j, j, j; if (j <= clast - colsize) printf " "; } printf "\n"; } } #--