Skip to content

Instantly share code, notes, and snippets.

@pinge
Created July 20, 2017 04:56
Show Gist options
  • Save pinge/9700cfa0bab04af87c53074b303a474a to your computer and use it in GitHub Desktop.
Save pinge/9700cfa0bab04af87c53074b303a474a to your computer and use it in GitHub Desktop.
dir1='image-builder-rpi'
dir2='gateway-image-builder-rpi'
IFS=$'\n'
for file in $(grep -Ilsr -m 1 '.' "$dir1"); do
diff -q "$file" "${file/${dir1}/${dir2}}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment