About 283,000 results
Open links in new tab
  1. Convert received data bytes in serial to hex text

    Jul 10, 2019 · How can I get the correct hex display? EDIT: tty permission set: stty -F /dev/ttyS1 speed 115200 cs8 -cstopb -parenb -echo time 3 min 0 EDIT2: Something weird is happening I …

  2. text processing - Convert hexadecimal to binary on Linux CLI

    Apr 16, 2023 · Assuming you want hex strings to be converted to binary strings (sequences of 8 0 or 1 characters for each 2 hex digit character), as opposed to convert those to binary, I'd use …

  3. convert a hex string to binary and send with netcat

    I have a binary file that I can send with netcat: $ nc -l localhost 8181 < my.dat The file contains this: $ xxd my.dat 0000000: 0006 3030 3030 4e43 ..0000NC What I really ...

  4. BASH base conversion from decimal to hex - Unix & Linux Stack …

    Mar 19, 2015 · In Bash, how does one do base conversion from decimal to another base, especially hex. It seems easy to go the other way: $ echo $((16#55)) 85 With a web-search, I …

  5. How to read string as hex number in bash? - Unix & Linux Stack …

    Mar 18, 2019 · Stack Exchange Network. Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for …

  6. text processing - how to use tr to delete a octal characters …

    Apr 25, 2017 · Using a Hex text editor I've identified the non-visible characters Now I'm trying to delete the whole sequence of characters but I haven't had succeeded, those are my tries:

  7. How to convert hexdump to text? - Unix & Linux Stack Exchange

    Aug 29, 2016 · Stack Exchange Network. Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for …

  8. bash - Align a hex text file at 9 bytes each line - Unix & Linux Stack ...

    I want to align the selected portion of a text file at 9 bytes each column. For example suppose my text file looks like below. 00 2f c6 b8 29 fd 02 37 11 00 9f 74 34 0b 60 72 38 20 00 9e 61 33 ...

  9. How to display rgb hex colors on terminal using python?

    Aug 12, 2023 · def hex_to_rgb(rgb_hex): # Unpack the 24-bit `rgb_hex` integer to a RGB tuple of 3 8-bit integers return ( rgb_hex>>16 , # r is stored in the most significant 8 bits (rgb_hex>> …

  10. text processing - Shell: How to read the bytes of a binary file and ...

    If the data you're viewing is mostly text with occasional binary, you might find the -v option to cat(1) convenient: $ printf 'here is\x00\x01some text\x15\x16with the odd bit\x80\x81of binary …

Refresh