https://github.com/ionboleac/compare-two-files
Compare two file if they are different
https://github.com/ionboleac/compare-two-files
compare-files hash
Last synced: 3 months ago
JSON representation
Compare two file if they are different
- Host: GitHub
- URL: https://github.com/ionboleac/compare-two-files
- Owner: IonBoleac
- License: wtfpl
- Created: 2024-10-01T09:45:08.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-11-28T12:06:12.000Z (8 months ago)
- Last Synced: 2025-04-15T21:45:09.612Z (3 months ago)
- Topics: compare-files, hash
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```bash
python compare.py file1 file2
```or
```bash
python compare.py file1 file2 --method line
```or
```bash
python compare.py file1 file2 -h
```