Comments on: Remove duplicates, but keeping only the last occurrence https://backreference.org/2011/11/17/remove-duplicates-but-keeping-only-the-last-occurrence/ Proudly uncool and out of fashion Sat, 30 May 2015 19:57:33 +0000 hourly 1 https://wordpress.org/?v=5.8.2 By: Kayla https://backreference.org/2011/11/17/remove-duplicates-but-keeping-only-the-last-occurrence/#comment-25199 Sat, 30 May 2015 19:57:33 +0000 http://backreference.org/?p=2925#comment-25199 This is exactly what I was looking for! Very clear and informative. Thank you!

]]>
By: waldner https://backreference.org/2011/11/17/remove-duplicates-but-keeping-only-the-last-occurrence/#comment-24712 Fri, 18 Nov 2011 10:14:46 +0000 http://backreference.org/?p=2925#comment-24712 In reply to gagagruau.

Well, that's the lazy solution! :-)

]]>
By: gagagruau https://backreference.org/2011/11/17/remove-duplicates-but-keeping-only-the-last-occurrence/#comment-24711 Thu, 17 Nov 2011 23:41:48 +0000 http://backreference.org/?p=2925#comment-24711 This is interesting, but although it might be less efficient, I guess the simpler solution would have been something like

tac | awk '!a[$0]++' | tac

knowing that the tac utility is part of coreutils.

]]>