mlr --csv head -n 5 data.csv

Category: Data Science & Analysis

mlr --csv head -n 5 data.csv

Show the first 5 rows of a CSV with Miller

Miller (mlr) is a data-processing toolkit that treats CSV and JSON as first-class citizens. The head verb prints the first 5 records of the input, similar to the head command but CSV-aware and format-safe. The --csv flag declares comma-separated input and output. Pair with the tail verb to see the end of a file.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.