larsyencken / csvdiff

Generate a diff between two tabular datasets expressed in CSV files.
BSD 3-Clause "New" or "Revised" License
132 stars 31 forks source link

Option(s) to ignore commented lines/rows or skip n lines from the beginning #56

Open pandurang-kolekar opened 5 years ago

pandurang-kolekar commented 5 years ago

Thank you for contributing such a nice utility for the csv file comparison.

It would be great to have an option to ignore commented lines/rows or skip n lines from the beginning. In the following example if the user specifies '#' as a comment character the program should skip those lines from the comparison.

e.g. The commented header lines describing the file content.

Author name

Description

id,name,amount 1,bob,20 2,eva,63 3,sarah,7 4,jeff,19 6,fred,10