Skip to content

Instantly share code, notes, and snippets.

@kennyadsl
Created May 26, 2014 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kennyadsl/c85fb08b7ee9a541c7f4 to your computer and use it in GitHub Desktop.
Save kennyadsl/c85fb08b7ee9a541c7f4 to your computer and use it in GitHub Desktop.
Simple script to find difference in 3 projects which share same file names
#!/bin/bash
# change proj_1 proj_2 and proj_3 with real project names
# usage:
# $ better_diff3 Gemfile.lock
#
args=("$@")
diff3 '~/Code/proj_1/'${args[0]} '~/Code/proj_2/'${args[0]} '~/Code/proj_3/'${args[0]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment