Useful tricks for processing CSV files

CSV and Me

© Photo by Taylor Smith on Unsplash

© Photo by Taylor Smith on Unsplash

Article from Issue 299/2025
Author(s):

With a few tools, you can harness the data available in even the most troublesome CSV files.

You can say what you want to about visual programming, vibe coding, and AI. The truth is, the world is chock full of data that can be converted into simple formats and processed with simple tools.

This article describes some tricks I've collected over the years for dealing with comma-separated value (CSV) files. I'll also present a little tool that will make those tricks work even on troublesome data files.

CSV files are simply plain text files that, if necessary, you could read on any terminal with commands like cat or more or write and modify with a text editor.

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Miller

    Miller offers a clever alternative for working with structured text files: use a single tool to replace the strings of commands built from conventional utilities like grep, cut, and sed.

  • Command Line: sort

    sort helps you organize file lists and program

    output. And if you like, you can even use this small

    but powerful tool to merge and sort multiple files.

  • Tellico

    Linux has a fantastic collection of database servers, but many users just want a simple desktop database. Tellico fills the niche.

  • LibreOffice Music Database

    LibreOffice Calc and Base are all you need to create a simple database for organizing the songs in your music collection.

  • VisiData

    VisiData lets you easily manage, process, and view tabular data from multiple sources, all from the command line.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News