Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 days 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 (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-10-28T15:59:44.000Z (11 days ago)
- Last Synced: 2024-10-28T17:22:34.970Z (11 days ago)
- Topics: compare-files, hash
- Language: Python
- Homepage:
- Size: 3.91 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## 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
```