Curiosity here. I cat-ed a bitmap and expected it to display one ascii character for each byte in the file. The first few characters were thus as expected (BM6), but I noticed further down that it also displayed non-ascii characters in the terminal like "ڮ", "Ѿ", "ӷ", etc.
Why is this? What is cat doing here?
(The bitmap I used has bitsPerPixel=8, so it can't be a representation of a multi-byte pixel, right?)
cat file.bmp | hexdump -Cis a nice way of displaying the bytes in the bmp as asciihexdump -C file.bmpwill do the same thing with no pipe and just one program running. Alsood -c file.bmp.