GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - SSPJ/diff-paste: Interactive Bash script to run diff with text from your clipboard

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
README.md
README.md
 
 
diffp
diffp
 
 

Repository files navigation

Diff Paste Readme

Diff Paste is an interactive Bash script to call a diff tool with pasted (or typed) content.

I wrote it because I have frequently found myself wanting to paste two short (or not so short) snippets of text into a Bash shell and see whether they are different.

Usage

$ ./diffp
Paste or type the first text now (press Enter, Ctrl-d when done):
this is a 
short story
about a bat and a dog
who go on 
adventures
Paste or type the second text now (press Enter, Ctrl-d when done):
this is a 
short story
about a cat and a dog
who go on 
adventures
-----------------------------------------------------
| Your diff taken at 10:27 (1573662472) starts here |
-----------------------------------------------------
3c3
< about a bat and a dog
---
> about a cat and a dog
-----------------------------------------------------
| < this line came from your first input            |
| > this line came from your second input           |
-----------------------------------------------------

Or when the snippets are identical:

$ ./diffp
Paste or type the first text now (press Enter, Ctrl-d when done):
a cat
Paste or type the second text now (press Enter, Ctrl-d when done):
a cat
-----------------------------------------------------
| Your diff taken at 10:33 (1573662793) starts here |
-----------------------------------------------------
|                                                   |
| No diff. Inputs were identical.                   |
-----------------------------------------------------

Installation

Download the diffp file and put it somewhere.

You may need to make it executable with chmod +x diffp.

I recommend putting it somewhere on your path, like in /usr/local/sbin/, so that you do not have to be in the same directory to call it.

About

Interactive Bash script to run diff with text from your clipboard

Topics

diffutility

Resources

Readme
GPL-3.0 license
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.