Giter Club home page Giter Club logo

diffdir's Introduction

diffdir

此脚本利用 vimdiff 在命令行下对文件夹下的文件进行递归式的对比。

简介

  • 依赖:vimdiff diff
  • 功能:递归对比两个文件夹下的文件差异
  • 操作环境:*nix cli
  • 操作要求:vimdiff 基本操作

使用说明

安装

git clone https://github.com/fevin/diffdir.git diffdir && cd diffdir
ln diffdir.sh /usr/local/bin/diffdir

示例

Command: diffdir dir1 dir2

➜  test-fir-diff-dir git:(master) ✗ tree
.
├── dir1
│   └── test.sh
└── dir2
    └── test.sh

2 directories, 2 files
➜  test-fir-diff-dir git:(master) ✗ diffdir ./dir1 ./dir2
# vimdiff 界面

如果文件夹下有多文件差异,只需在 vim 的命令模式下,键入 qa 即可进入下一对文件对比结果界面。

TODO

  • 支持传入操作参数,eg. 过滤文件

diffdir's People

Contributors

fevin avatar

Watchers

 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.