ff@kego:~$ diff -bu test.txt <(hexdump -C test.exe)
--- test.txt 2018-09-11 23:54:58.396291539 +0300
+++ /dev/fd/63 2018-09-12 00:00:17.243804651 +0300
@@ -16,3 +16,4 @@
000000f0 00 00 00 00 10 00 00 00 00 00 00 00 00 00 00 00 |................|
00000100 00 00 09 00 50 0d 00 00 00 00 00 00 00 00 00 00 |....P...........|
00000110 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
\ В конце файла нет новой строки
+00000120