Skip to content

Instantly share code, notes, and snippets.

@pazworld
Created March 1, 2013 11:14
Show Gist options
  • Save pazworld/5063998 to your computer and use it in GitHub Desktop.
Save pazworld/5063998 to your computer and use it in GitHub Desktop.
Show diff of two input from STDIN.
#!/bin/sh
echo "Input first file, then Ctrl-D"
echo -n "> "
cat >old.txt
echo "Input second file, then Ctrl-D"
echo -n "> "
cat >new.txt
windiff old.txt new.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment