xsv flatten data.csv

Category: Data Science & Analysis

xsv flatten data.csv

Print one field per line for each record

The flatten command expands each record into multiple lines, one field per line labeled with its column name. This makes long rows readable and is ideal for inspecting a single record's full content. Flattened output is for humans, not for further processing. Pipe a slice of rows into flatten to examine them one at a time.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.