Skip to content

Instantly share code, notes, and snippets.

@benlangfeld
Created August 24, 2011 15:48
Show Gist options
  • Save benlangfeld/1168354 to your computer and use it in GitHub Desktop.
Save benlangfeld/1168354 to your computer and use it in GitHub Desktop.
{16:42}[ruby-1.9.2]~/Desktop ben% echo "This is text file one" > file1.txt
{16:43}[ruby-1.9.2]~/Desktop ben% echo "This is text file two" > file2.txt
{16:43}[ruby-1.9.2]~/Desktop ben% diff file1.txt file2.txt > something.diff
{16:43}[ruby-1.9.2]~/Desktop ben% mate something.diff
...or...
{16:43}[ruby-1.9.2]~/Desktop ben% diff file1.txt file2.txt | mate
> directs output to disk, | directs it to the input of the following command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment