Ops Monkey

Friday, October 5, 2012

AWK Tip - Remove duplicate lines without sorting file

Remove duplicate lines without having to sort file

awk '!a[$0]++'  <file>
Posted by anonymous at 5:05 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Search This Blog

Blog Archive

  • ►  2020 (2)
    • ►  September (1)
    • ►  August (1)
  • ►  2019 (1)
    • ►  May (1)
  • ►  2018 (1)
    • ►  May (1)
  • ►  2017 (20)
    • ►  May (3)
    • ►  March (4)
    • ►  February (7)
    • ►  January (6)
  • ►  2016 (9)
    • ►  December (3)
    • ►  November (2)
    • ►  February (4)
  • ►  2015 (16)
    • ►  December (1)
    • ►  November (2)
    • ►  October (1)
    • ►  August (3)
    • ►  May (5)
    • ►  April (3)
    • ►  March (1)
  • ►  2014 (30)
    • ►  December (17)
    • ►  August (2)
    • ►  July (6)
    • ►  May (1)
    • ►  February (4)
  • ►  2013 (69)
    • ►  August (4)
    • ►  July (3)
    • ►  June (8)
    • ►  May (1)
    • ►  April (13)
    • ►  March (7)
    • ►  February (15)
    • ►  January (18)
  • ▼  2012 (52)
    • ►  December (5)
    • ▼  October (4)
      • CPU Caches
      • Apache Memory Leak and MaxRequestsPerChild
      • Bash Socket Programming : Scan ports using Bash sh...
      • AWK Tip - Remove duplicate lines without sorting file
    • ►  July (4)
    • ►  June (6)
    • ►  May (6)
    • ►  April (6)
    • ►  March (2)
    • ►  February (19)
  • ►  2011 (1)
    • ►  August (1)

About Me

anonymous
View my complete profile
Awesome Inc. theme. Powered by Blogger.