On Mon, 10 Feb 1997 19:03:12 -0500 lars(_at_)software3(_dot_)bu(_dot_)edu (Lars
Kellogg-Stedman) wrote:
sed -n -e '$!N' -e '/[^ ]* *[^ ]* *[^ *] *[^ ]* *\(.*\)\n.*\1/!P'
The '-n' (suppress default output) makes the '-e D' on the end
unnecessary (the output is identical, and I'm assuming that the two
expressions are syntactically the same). That ugly regexp skips the
Whoops, I lied.
That's:
sed -e '$!N' -e '/[^ ]* *[^ ]* *[^ *] *[^ ]* *\(.*\)\n.*\1/!P' -e D
And the world's a happier place.
-- Lars
---
Lars Kellogg-Stedman * lars(_at_)bu(_dot_)edu * (617)353-8277
Office of Information Technology, Boston University