Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 6th, 2012  |  syntax: None  |  size: 0.41 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. OLDAPP="rt-sample-app"
  2. NEWAPP="sample_app_31"
  3. find ../${OLDAPP}  -type f \
  4. | egrep -v "\.git|javascripts/" \
  5. | sed -e "s,.*${OLDAPP},," -e "s,public,app/assets," \
  6. | sort -n > /tmp/$$_DIRS
  7.  
  8. find ../${NEWAPP} -type f \
  9. | egrep -v "\.git" \
  10. | sed -e "s,.*${NEWAPP},," -e "s,vendor/assets,app/assets," -e "s,public,app/assets," \
  11. | sort -n > /tmp/$$_NEW_DIRS
  12.  
  13. sdiff -s -w80 /tmp/$$_DIRS /tmp/$$_NEW_DIRS |egrep -v plugins