Add -z option to uniq. Originally proposed by Egmont Koblinger.
authorJames Youngman <jay@gnu.org>
Sun, 13 May 2007 09:02:43 +0000 (11:02 +0200)
committerJim Meyering <jim@meyering.net>
Sun, 13 May 2007 09:02:43 +0000 (11:02 +0200)
commite06252480ac023b8c5f03ee1a8ab43d386fefd46
treeb1b30dbb3a8f0b20e75548af3972fc141e6f56b6
parentcdd66362dc88370c1372f76a5573cb486d1c23c9
Add -z option to uniq.  Originally proposed by Egmont Koblinger.
* NEWS: Mention uniq's new option: --zero-terminated (-z).
* src/uniq.c: Add new option, --zero-terminated (-z), to make
uniq use the NUL byte as separator/delimiter rather than newline.
(check_file): Add a parameter: delimiter.  Update caller.
Use readlinebuffer_delim in place of readlinebuffer everywhere.
(main): Handle the new option.
(usage): Describe new option the same way sort does.
* doc/coreutils.texi (uniq invocation): Describe the new option.
ChangeLog
NEWS
doc/coreutils.texi
src/uniq.c