Skip to content

Instantly share code, notes, and snippets.

@roman204
Forked from thomasfr/what-changed.sh
Last active August 29, 2015 14:09
Show Gist options
  • Save roman204/51f915df05417dcaafd7 to your computer and use it in GitHub Desktop.
Save roman204/51f915df05417dcaafd7 to your computer and use it in GitHub Desktop.
#!/bin/bash
dir1="/tmp/dir1"
dir2="/tmp/dir2"
IFS=$'\n'
for file in $(grep -Ilsr -m 1 '.' "$dir1"); do diff -q --exclude="cache" "$file" "${file/${dir1}/${dir2}}" 2> /dev/null; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment