explode

May 31, 2026 · View on GitHub

Explode rows into multiple ones by splitting a column value based on the given separator. The inverse of implode.

Table of Contents | Source: src/cmd/explode.rs | 🔣👆

Description | Examples | Usage | Explode Options | Common Options

Description

Explodes a row into multiple ones by splitting a column value based on the given separator.

Examples

name,colors
John,blue|yellow
Mary,red

Can be exploded on the "colors" based on the "|"

qsv explode colors "|" data.csv
name,colors
John,blue
John,yellow
Mary,red

See also https://github.com/dathere/qsv/wiki/Transform-and-Reshape#explode

Usage

qsv explode [options] <column> <separator> [<input>]
qsv explode --help

Explode Options

     Option     TypeDescriptionDefault
 ‑r,
‑‑rename 
stringNew name for the exploded column.

Common Options

     Option     TypeDescriptionDefault
 ‑h,
‑‑help 
flagDisplay this message
 ‑o,
‑‑output 
stringWrite output to instead of stdout.
 ‑n,
‑‑no‑headers 
flagWhen set, the first row will not be interpreted as headers.
 ‑d,
‑‑delimiter 
stringThe field delimiter for reading CSV data. Must be a single character. (default: ,)

Source: src/cmd/explode.rs | Table of Contents | README