Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 442 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 442 Bytes

Compare two files

This repo contains a simple python script that compares two files and prints the differences between them. There are some method to compare two files:

  • line-by-line comparison
  • hash-by-hash comparison
  • byte-by-byte comparison
  • csv-by-csv comparison

How to use

python compare.py file1 file2

or

python compare.py file1 file2 --method line

or

python compare.py file1 file2 -h