Skip to main content
GrN.dk

Main navigation

  • Articles
  • Contact
  • Your Digital Project Manager
  • About Greg Nowak
  • Services
  • Portfolio
  • Container
    • Excel Freelancer
    • Kubuntu - tips and tricks
    • Linux Apache MySQL and PHP
    • News
    • Image Gallery
User account menu
  • Log in

Breadcrumb

  1. Home

CSV Kit Notes Tips and Examples

Nice thing to use when working with CSV-files is CSV Kit.

See the file statistics: csvstat -e UTF-16 test.csv

Merge all files in a folder: csvstack -e UTF-16 -t *.csv > all.csv

Save column 2 to output .csv: csvcut -c 2 -e UTF-8 all.csv > output.csv

Remove duplicates:

Sort the file first: sort -n output.csv > sorted.csv

Save only unique values: uniq -u sorted.csv > unique.csv

 

 

 

 

 

Last modified
2017-06-13

Tags

  • Linux
  • csv
  • Data
  • Log in to post comments

Review Greg on Google

Greg Nowak Google Reviews

 

  • CodeIgniter Tips and Tricks for Secure Login and Password Resets
  • Drupal Commerce: Practical Setup and Scoping Guide
  • Ubuntu 26.04 LTS Raises TLS Defaults, So Legacy Integrations Need a Real Test Plan
  • Cloudflare Turnstile only works if you validate and tune it, making lead-form abuse a paid ops job
  • WordPress 7.0 Collaboration Readiness: Why Legacy Meta Boxes and Hosting Assumptions Can Still Stall Your Upgrade
RSS feed

GrN.dk web platforms, web optimization, data analysis, data handling and logistics.