Skip to content

Instantly share code, notes, and snippets.

@jasnow
Created July 24, 2011 17:53
Show Gist options
  • Save jasnow/1102882 to your computer and use it in GitHub Desktop.
Save jasnow/1102882 to your computer and use it in GitHub Desktop.
OLDAPP="rt-sample-app"
NEWAPP="sample_app_31"
find ../${OLDAPP} -type f \
| egrep -v "\.git|javascripts/" \
| sed -e "s,.*${OLDAPP},," -e "s,public,app/assets," \
| sort -n > /tmp/$$_DIRS
find ../${NEWAPP} -type f \
| egrep -v "\.git" \
| sed -e "s,.*${NEWAPP},," -e "s,vendor/assets,app/assets," -e "s,public,app/assets," \
| sort -n > /tmp/$$_NEW_DIRS
sdiff -s -w80 /tmp/$$_DIRS /tmp/$$_NEW_DIRS |egrep -v plugins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment