Date: Fri, 20 Dec 2002 07:45:29 -0500 (EST) From: Mikhail Teterin <mi@corbulon.video-collage.com> To: arch@FreeBSD.org Cc: tjr@FreeBSD.org Subject: uniq(1): first instead of the last of unique lines Message-ID: <200212201245.gBKCjTFM034706@corbulon.video-collage.com>
next in thread | raw e-mail | index | archive | help
Hello! Some time ago I submitted the http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/43675 which modified uniq(1) to print the first, rather than the last of the consequtive identical lines. The most obvious application would be watching various log files: tail -f /....../foo.log | uniq However, currently uniq will only show a line once it sees a different one following it (or once the input closes). Try yes | uniq I think, the present behaviour is counter-intuitive... My patch makes uniq(1) output the first ``y'' immediately... tjr has first agreed to review and commit the patch but is now having second thoughts. Any more opinions? Anyone agreeing strongly enough to just commit it? Thanks, -mi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200212201245.gBKCjTFM034706>