Created
November 1, 2025 04:12
-
-
Save dewomser/00e252bc681434c1affeeb9f62c15588 to your computer and use it in GitHub Desktop.
awk script to show ASCII table
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # sourcs: https://techhub.social/@linuxgal/115471602454624615 | |
| awk ' | |
| BEGIN { | |
| for (i=0; i<16; i++) { | |
| for (j=32+i; j<128; j+=16) { | |
| if (j == 32) { x = "SPC" } | |
| else if (j == 127) { x = "DEL" } | |
| else { x = sprintf("%c", j) } | |
| printf("%3d (0x%02X): %-5s", j, j, x) | |
| } | |
| print "" | |
| } | |
| } | |
| ' "$0" | |
| exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment