Skip to content

Instantly share code, notes, and snippets.

@JohnL4
Created October 25, 2017 19:14
Show Gist options
  • Save JohnL4/34661f63b03261b10b7ba63b5bb15baf to your computer and use it in GitHub Desktop.
Save JohnL4/34661f63b03261b10b7ba63b5bb15baf to your computer and use it in GitHub Desktop.
Bash od(1) cmd to show one-byte hex codes + encoded characters.
od -t x1 -t c 'Allscripts Visit Record.htm' | less
# Produces output like the following:
#
# 0000000 ef bb bf 3c 21 44 4f 43 54 59 50 45 20 48 54 4d
# 357 273 277 < ! D O C T Y P E H T M
# 0000020 4c 3e 0d 0a 3c 21 2d 2d 20 73 61 76 65 64 20 66
# L > \r \n < ! - - s a v e d f
# 0000040 72 6f 6d 20 75 72 6c 3d 28 30 33 38 38 29 68 74
# r o m u r l = ( 0 3 8 8 ) h t
# 0000060 74 70 3a 2f 2f 6c 6f 63 61 6c 68 6f 73 74 2f 56
# t p : / / l o c a l h o s t / V
# 0000100 69 73 69 74 52 65 63 6f 72 64 2f 20 2d 2d 3e 0d
# i s i t R e c o r d / - - > \r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment