Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • ok, but does this remove dupes from an existing colon delimited string, or does it prevent dupes from being added to a string? Commented Dec 10, 2016 at 9:59
  • 1
    looks like the former Commented Dec 10, 2016 at 10:00
  • 2
    @AlexanderMills, well, the OP just asked about removing duplicates so this is what the awk call does. Commented Dec 10, 2016 at 18:59
  • 1
    The paste command doesn't work for me unless I add a trailing - to use STDIN. Commented Apr 24, 2017 at 21:11
  • 2
    Also, I need to add spaces after the -v or else I get an error. -v RS=: -v ORS=. Just different flavors of awk syntax. Commented Apr 24, 2017 at 21:56