Skip to content

Instantly share code, notes, and snippets.

@unique-EJ
Created December 27, 2024 20:27
Show Gist options
  • Select an option

  • Save unique-EJ/29ef453cf54adb2ad97684ea3d56acb3 to your computer and use it in GitHub Desktop.

Select an option

Save unique-EJ/29ef453cf54adb2ad97684ea3d56acb3 to your computer and use it in GitHub Desktop.
Linux command-line to convert decimal values to hexadecimal.
# Linux command-line - AWK text processing language program.
awk $'BEGIN { print "Type decimal (input) values to have the converted hexadecimal value output. CTRL-d to end." }\n{ printf "%s%x\\n", "Hex: ", $0 }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment