Removing duplicate lines with sed
# 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’
# 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’
Leave a Reply