Skip to content

0xba1/difr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Difr

A command-line tool to discern the differences between two text files.

Installation

Clone this repository

git clone "https://github.com/0xba1/difr.git"
cd difr

Ensure that you have rust installed, if not follow these instructions to install rust.

Build the binary by running

cargo build --release

Copy the binary file at ./target/release/difr or ./target/release/difr.exe(for Windows) to the bin folder of your choice and ensure it's included in $PATH

Example

Input:

difr sample/baz.txt sample/buz.txt

Output:

File 1:	sample/baz.txt	29bytes	1line(s)
File 2:	sample/buz.txt	19bytes	1line(s)

Computing SHA3-256 hashes of files...
File 1:	7623b9d516a1d92ce0795076f2a5081b8070fab79eb5cffb845e9d525be7111d
File 2:	c52fa205f47daf2b17c84ca57b50cffb2e9e08ccffcadffb77cde9477a1c1634

Contents of files are different


Line 1:
>	Look at what you made me do.
>	What is your hash?

It uses the coloured crate to provide better looking output.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages