I'm trying to display a hexdump of a file and highlight carriage returns in red. I'm having a really hard time understanding the format of the formats option (-e).Is it something like:hexdump -e _L[red:0A] practice_file_1.txt?I'm slowly solving the puzzle, but I probably don't know a higher level knowledge base that would make this more understandable, like the printf(3) syntax or something, but I don't know what it is...Also, is it even related to the -L tag? (Do I need to use the -L option?)References:http://man7.org/linux/man-pages/man1/hexdump.1.html#FORMATShttp://man7.org/linux/man-pages/man3/fprintf.3.html
Hexdump format syntax - color
colors;hexdump
Here is a quick example:hexdump -f foo.cfg foo.logand foo.cfg contains%06.6_ao   12/1 %3_c_L[red:0x0a] \nand the result only colors when writing to a terminal (not redirected).  Looking at the result by capturing the output using script, the result looks like this in a text editor:Script started on Fri 04 Nov 2016 09:23:32 PM EDT000000   f   o   o ^[[31m \n^[[0m   f   o   o   .   l   o   g ^[[31m \n^[[0m^M000014   s   d   d   m   -   a   u   t   h   0   2   4^M000030   0   b   f   b   3   -   a   d   0   6   -   4^M000044   7   0   7   -   b   a   1   3   -   1   f   e^M000060   0   7   5   9   e   a   e   7   4 ^[[31m \n^[[0m   s   d^M000074   d   m   -   a   u   t   h   0   b   1   9   9^M000110   b   f   5   -   c   7   3   4   -   4   5   f^M000124   f   -   a   4   8   0   -   f   5   a   a   c^M000140   e   c   3   e   1   b   0 ^[[31m \n^[[0m   s   d   d   m^M000154   -   a   u   t   h   4   0   7   1   d   2   1^M000170   b   -   6   0   4   7   -   4   a   8   5   -^M000204   8   1   3   6   -   f   3   8   9   0   d   6^M000220   a   b   a   d   0 ^[[31m \n^[[0m   s   d   d   m   -   a^M