Created
July 21, 2014 07:08
-
-
Save rondinif/d56f8c8e5d1a68ef0f97 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
student=1 | |
topic=DownloadBoundServiceAsync | |
gdsrc=~/projects/coursera/posa-002/POSA-14-20140706/grading-drivers/week-8-assignment-7/W8-A7-ThreadedDownloads-BoundServices/src/edu/vuum/mocca/$topic.java | |
peer_assesment=./peer-assessments/week8/s$student/$topic.java | |
tmp_peer_assesment=./tmp/$topic.java | |
awk '{ sub(/\r$/,""); print }' < $peer_assesment > $tmp_peer_assesment | |
opendiff $gdsrc $tmp_peer_assesment |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks to the author(s) of this article
more alternatives dos2unix,tr,etc..
http://blog.codinghorror.com/the-great-newline-schism/
http://macscripter.net/viewtopic.php?id=33170
http://www.hanselman.com/blog/YoureJustAnotherCarriageReturnLineFeedInTheWall.aspx