Skip to content
PHPFog.com
  • Home
  • Agency
  • Services
  • Team
  • Testimonials
  • News
  • Quote
Menu Close
  • Home
  • Agency
  • Services
  • Team
  • Testimonials
  • News
  • Quote

Programming

  1. Home>
  2. Blog>
  3. Programming>
  4. Page 8
Blog / Linux/Shell / Programming

Count Unique Elements in Text File with AWK

Counting the distinct/unique elements of text file is a common task.  Below is an example of doing this is AWK, using sample_data_1.txt. cat sample_data_1.txt \ | awk 'BEGIN{FS="\t"} NR>1{names[$2]=1} END{print…

0 Comments
January 25, 2021
  • Go to the previous page
  • 1
  • …
  • 5
  • 6
  • 7
  • 8

Newsletter

Get all latest content delivered to your email a few times a month.
Email is required Email is not valid
Thanks for your subscription.
Failed to subscribe, please contact admin.

Recent Posts

  • Best Tactics For Lead Generation to the development
    Best Tactics For Lead Generation to the development
    May 17, 2022/
    0 Comments
  • Top 10 Virtual Team Meeting Platforms
    Top 10 Virtual Team Meeting Platforms
    May 13, 2022/
    0 Comments
  •  Ways to create Excel spreadsheet in PHP
    February 18, 2022/
    0 Comments
Facebook Twitter Youtube Instagram Linkedin Rss

© Copyright – OceanWP

By continuing to use this website, you consent to the use of cookies in accordance with our Cookie Policy.

Accept