Package: file
Version: 5.00-1

Hi Daniel,

file(1):
>      -0, --print0
>              Output a null character ‘\0’ after the end of the filename.
>              Nice to cut(1) the output. This does not affect the separator 
>              which is still printed. 

$ file foo | hd
00000000  66 6f 6f 3a 20 65 6d 70  74 79 0a                 |foo: empty.|
0000000b

$ file -0 foo | hd
00000000  66 6f 6f 00 20 65 6d 70  74 79 0a                 |foo. empty.|
0000000b

(the separator is gone, contrary to what the man page says)

$ file -0 -F? foo | hd
00000000  66 6f 6f 00 20 65 6d 70  74 79 0a                 |foo. empty.|
0000000b

(separator is not printed at all when -0, in spite of being explicitly 
requested)

Cheers,
-- 
Raphael Geissert - Debian Maintainer
www.debian.org - get.debian.net



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to