xxd?

Quick example.

xxd SQLite-ODBC.txt
00000000: 7375 646f 2061 6464 2d61 7074 2d72 6570  sudo add-apt-rep
00000010: 6f73 6974 6f72 7920 2d79 2070 7061 3a6c  ository -y ppa:l
00000020: 696e 7578 676e 6475 2f73 716c 6974 6562  inuxgndu/sqliteb
00000030: 726f 7773 6572 0a73 7564 6f20 6170 742d  rowser.sudo apt-
00000040: 6765 7420 696e 7374 616c 6c20 7371 6c69  get install sqli
00000050: 7465 6272 6f77 7365 720a 0a73 7564 6f20  tebrowser..sudo
00000060: 6170 742d 6765 7420 696e 7374 616c 6c20  apt-get install
00000070: 756e 6978 6f64 6263 2075 6e69 786f 6462  unixodbc unixodb
00000080: 632d 6269 6e0a 7375 646f 2061 7074 2d67  c-bin.sudo apt-g
00000090: 6574 2069 6e73 7461 6c6c 2073 716c 6974  et install sqlit
000000a0: 6533 0a0a 4f44 4243 4d61 6e61 6765 4461  e3..ODBCManageDa
000000b0: 7461 536f 7572 6365 7351 340a 0a73 7564  taSourcesQ4..sud
000000c0: 6f20 6170 7420 696e 7374 616c 6c20 6c69  o apt install li
000000d0: 6272 656f 6666 6963 652d 6261 7365 0a0a  breoffice-base..
000000e0: 0a                                       .


\\||/
Rod
--

On 1/22/20 12:00 PM, wes wrote:
On Wed, Jan 22, 2020 at 5:50 AM Richard Owlett <[email protected]> wrote:

I'm running Debian 9.8 with MATE desktop.
I'm exploring a data file with the intention of eventually parsing it in
a useful fashion.

Just downloaded ghex. I like the display format.
Its tools are inconvenient.

I need to:
   1. Simultaneously display in _both_ HEX and ASCII format
   2. Know the current offset in *DECIMAL* format.
      {knowing the offset also in HEX might be nice}
   3. Goto to an offset - expressed in DECIMAL.
   4. Advance a specific number of bytes.
   5. Search for an ASCII string.
   6. Search for arbitrary sequence of bytes expressed as HEX.

Suggested tool(s) in Debian repository?
TIA


hexdump?

for example:

$ hexdump -C example.exe | less
00000000  4d 5a 90 00 03 00 00 00  04 00 00 00 ff ff 00 00
  |MZ..............|
00000010  b8 00 00 00 00 00 00 00  40 00 00 00 00 00 00 00
  |........@.......|
00000020  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
  |................|
00000030  00 00 00 00 00 00 00 00  00 00 00 00 d8 00 00 00
  |................|
00000040  0e 1f ba 0e 00 b4 09 cd  21 b8 01 4c cd 21 54 68
  |........!..L.!Th|
00000050  69 73 20 70 72 6f 67 72  61 6d 20 63 61 6e 6e 6f  |is program
canno|
00000060  74 20 62 65 20 72 75 6e  20 69 6e 20 44 4f 53 20  |t be run in
DOS |
00000070  6d 6f 64 65 2e 0d 0d 0a  24 00 00 00 00 00 00 00
  |mode....$.......|

-wes
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to