Giter VIP home page Giter VIP logo

difr's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.