Package: bsdextrautils
Version: 2.36.1-7
X-Debbugs-Cc: util-li...@vger.kernel.org
File: /usr/bin/colrm

Document on the colrm man page that it cannot deal with "binary" files.

$ 
f=.config/google-chrome-unstable/BrowserMetrics/BrowserMetrics-609464BE-1391.pma

# A similar file is surely available on your computer.

$ colrm 88 < $f; echo $?
0

# 0, how pleasant. But then where's the output?

$ strace colrm 88 < $f
...
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache", 
O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=27002, ...}) = 0
mmap(NULL, 27002, PROT_READ, MAP_SHARED, 3, 0) = 0x7f5caf526000
close(3)                                = 0
fstat(0, {st_mode=S_IFREG|0600, st_size=4194304, ...}) = 0
read(0, 
"\334\5\203@\0\0@\0\0\0@\0\2\0\0\0C\335]\223\0\0\0\0@\0\0\0\0\0\0\0"..., 4096) 
= 4096
dup(1)                                  = 3
close(3)                                = 0
dup(2)                                  = 3
close(3)                                = 0
exit_group(0)                           = ?
+++ exited with 0 +++
$ cat -v $f|colrm 88
M-\^EM-^C@^@^@@^@^@^@@^@^B^@^@^@CM-]]M-^S^@^@^@^@@^@^@^@^@^@^@^@^A^@^@^@^@^@^@^@M-PM-U^
0M--^@^@^@^@UV&KM-GM-+k<^B^@^@^@^@^@^@^@^A^@^@^@^B^@^A^@UV&KM-GM-+k<^@^@^@^@^@^@^@^@^@^
...

Reply via email to