Skip to content
Tags

,

uniq: useful linux command-line utility

by Stephen Mann on December 14th, 2009

uniq, from the man page: “report or omit repeated lines”

Which is just what I needed today. To remove duplicate lines from a file in vi, it’s just :%!uniq. Or you could do it from the terminal, but working in vi is more fun.

From → tech

No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS