Permalink
Browse files

Keep carriage return characters before EOL

  • Loading branch information...
1 parent 59a9483 commit 0c3de26649bb1eee6813e7c8905b04c7e0045e00 @l0b0 committed Apr 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 .bash_history
View
@@ -236,7 +236,7 @@ find . -print0 | while read -r -d ''; do printf %q "$REPLY"; printf '\n'; done
find . -printf x | wc -c
find /proc -regex '/proc/[0-9].*' -prune -o -print # not process number
find . -regex '.*\.\(orig$\|\(BACKUP\|BASE\|LOCAL\|REMOTE\)\..*\)' -delete # remove git rebase temp files
-find . \( -type d -regex '^.*/\.\(git\|svn\)$' -prune -false \) -o -type f -exec sed -i -e 's/[ \t]\+$//;$a\' {} \; # whitespace EOL EOF
+find . \( -type d -regex '^.*/\.\(git\|svn\)$' -prune -false \) -o -type f -exec sed -i -e 's/[ \t]\+\(\r\?\)$/\1/;$a\' {} \+ # whitespace EOL EOF
find . -type f -name file | exclude_vcs
find -version
firefox -profilemanager

0 comments on commit 0c3de26

Please sign in to comment.