Code Monkey home page Code Monkey logo

odiff's Introduction

odiff

NuGet Badge

OnlyDiff


Quickstart

dotnet tool update -g odiff
  • if ~/.dotnet/tools dotnet global tool isn't in path it can be added to your ~/.bashrc
echo 'export PATH=$PATH:~/.dotnet/tools' >> ~/.bashrc

command line

Usage: odiff FLAGS file1 file2

Shows only difference between files

Optional flags:

  -s,--all-stats          shows all stats informations
  -d,--show-differences   shows characters difference

Parameters:

  file1                   first file
  file2                   second file

usage

this tool is useful to compare two big files with minor changes between and to view them

devel0@tuf:~$ odiff -s -d /home/devel0/tmp/test1 /home/devel0/tmp/test | less

                                 file1       file2
--------------------------------------------------
max changed chars per line           1           1
size                         120850129   120506488
lines                           343641      343641
line differs                    343641      343641
line differs (%)                 100.0       100.0
char differs                    343641           0
char differs (%)                   0.3         0.0

file1 | file2
,     |      
,     |      
,     |      
,     |      
,     |      
,     |      

How this project was built

mkdir odiff
cd odiff

dotnet new sln
dotnet new console -n odiff

cd odiff
dotnet add package netcore-util --version 1.0.21
cd ..

dotnet sln add odiff
dotnet build
dotnet run -p odiff

odiff's People

Contributors

devel0 avatar

Watchers

 avatar  avatar  avatar

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.