Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Compare two text files by key columns

Project description

# KVDiff

Compare two text files by key columns

# Getting Started

Let’s say we have two text files maintaining a list of systems with versions.

` $ cat a.txt MacOS 10.12 Windows 10 Ubuntu 16 `

` $ cat b.txt MacOS 10.14 Windows 10 Manjaro 17 `

To see which systems are new in b.txt, deleted in b.txt, and version changed in b.txt, run kvdiff -k1 a.txt b.txt in the terminal:

` $ kvdiff -k1 a.txt b.txt * MacOS 10.12 > MacOS 10.14 + Manjaro 17 - Ubuntu 16 `

KVDiff reports that MacOS has a version change, new system Manjaro with version 17 is added, and Ubuntu is deleted.

# Requirements

# Installation

$ pip install kvdiff

# Usage

Run kvdiff –help for more infomation

# License

MIT licensed

# How It Works

[KVDiff: Compare Two Large Text Files by Key Columns](http://yxdong.me/posts/kvdiff.html)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for kvdiff, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size kvdiff-0.2.2.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page