xsv
Command‑line utility for monitoring SMART data, disk health, and drive diagnostics
"Install xsv"
Install the xsv CSV command‑line toolkit.
"View CSV as a Table"
Render a CSV file in a readable table format.
xsv table copilot-2026-05-06T20_55_58.789Z.csv
"Show First 10 Rows"
Display the first lines of a CSV file.
xsv head copilot-2026-05-06T20_55_58.789Z.csv
"Show Last 10 Rows"
Display the last lines of a CSV file.
xsv tail copilot-2026-05-06T20_55_58.789Z.csv
"Count Rows"
Count the number of rows in a CSV file.
"Show Column Names"
List all column headers in the CSV.
"Select Columns"
Select specific columns by name or index.
xsv select name,age copilot.csv
"Exclude Columns"
Remove specific columns from output.
xsv select '!password' users.csv
"Filter Rows by Regex"
Filter rows matching a pattern.
xsv search Sweden users.csv
"Filter Rows by Exact Match"
Filter rows where a column matches a value.
xsv search -s country Sweden users.csv
"Slice Rows"
Extract a specific row range.
xsv slice --start 10 --len 20 data.csv
"Sort by Column"
Sort rows by a specific column.
xsv sort -s age users.csv
"Sort Numerically"
Numeric sort instead of lexicographic.
xsv sort -s score -n results.csv
"Create Index"
Create an index for faster operations.
"Use Index Automatically"
Use the index for faster queries.
xsv search Sweden bigfile.csv
"Join Two CSV Files"
Join two CSV files on a shared column.
xsv join id left.csv id right.csv
"Join with Different Column Names"
Join using different column names.
xsv join left_id left.csv right_id right.csv
"Split CSV into Multiple Files"
Split a CSV into chunks of N rows.
xsv split --size 1000 data.csv out/
"Generate Summary Statistics"
Show min, max, mean, stddev, etc.
"Frequency Table"
Show value counts for a column.
xsv frequency -s country users.csv
"Validate CSV Structure"
Check for malformed rows.
```bash
xsv validate data.csv
"Rename Columns"
Rename columns in a CSV file.
xsv rename name,age,city users.csv
"Flatten CSV"
Convert CSV to a single line per row.
"Expand JSON Column"
Expand JSON objects inside a column.
xsv jsonl input.jsonl | xsv table
"Generate Sample CSV"
Create a random CSV for testing.
xsv sample 1000 data.csv > sample.csv
"Random Row Selection"
Randomly pick N rows.
"Concatenate CSV Files"
Append multiple CSV files together.
xsv cat rows file1.csv file2.csv > merged.csv