Compare two CSV files and report changed columns plus added, removed, and modified rows.
Both files are parsed, headers are compared as sets, and rows are matched by position or an optional key column. Common fields are compared as values and only a capped detail list is emitted.
Input1: id,name,email,role 1,Alice,[email protected],admin 2,Bob,[email protected],editor 3,Carol,[email protected],viewer Input2: id,name,email,role 1,Alice,[email protected],admin 2,Bob,[email protected],admin 4,Dave,[email protected],editor
Row Type Data Changes
--- -------- ------------------------------------------------------------------- ---------------------
1 modified {"id":"2","name":"Bob","email":"[email protected]","role":"admin"} role
2 modified {"id":"4","name":"Dave","email":"[email protected]","role":"editor"} id, name, email, role
Migration checks compare exports, QA reviews changed prices, and keyed customer reports find overnight additions.