1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 23:22:08 +02:00
tldr/pages/common/csv-diff.md
2022-09-27 06:58:54 +05:30

16 lines
739 B
Markdown

# csv-diff
> View differences between two CSV, TSV or JSON files.
> More information: <https://github.com/simonw/csv-diff>.
- Display a human-readable summary of differences between files using a specific column as a unique identifier:
`csv-diff {{path/to/file1.csv}} {{path/to/file2.csv}} --key={{column_name}}`
- Display a human-readable summary of differences between files that includes unchanged values in rows with at least one change:
`csv-diff {{path/to/file1.csv}} {{path/to/file2.csv}} --key={{column_name}} --show-unchanged`
- Display a summary of differences between files in JSON format using a specific column as a unique identifier:
`csv-diff {{path/to/file1.csv}} {{path/to/file2.csv}} --key={{column_name}} --json`