Created
March 1, 2013 11:14
-
-
Save pazworld/5063998 to your computer and use it in GitHub Desktop.
Show diff of two input from STDIN.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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