# delete duplicate, consecutive lines from a file emulates “uniq”. # First line in a set of duplicate lines is kept, rest are deleted. sed ‘$!N; /^\.\\n\1$/!P; D’
March 15, 2012
Removing duplicate lines with sed
No Comments »
No comments yet.
RSS feed for comments on this post. TrackBack URL