X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=utils%2Flint%2Fremove_trailing_whitespace.sh;h=6e0c9be0932b371e34325591094726e43524a404;hb=8d5b76e5d406829f7049dfb6cc6e772e137ed2f0;hp=de58dbab7fcf72b0746a141ca0004446a6df7f0b;hpb=653222fc997be323af28d05b98e26daa0b98f477;p=oota-llvm.git diff --git a/utils/lint/remove_trailing_whitespace.sh b/utils/lint/remove_trailing_whitespace.sh index de58dbab7fc..6e0c9be0932 100755 --- a/utils/lint/remove_trailing_whitespace.sh +++ b/utils/lint/remove_trailing_whitespace.sh @@ -3,4 +3,4 @@ # Sample syntax: # $0 *.cpp -perl -pi -e "s/\s+\$//" $* +perl -pi -e 's/\s+$/\n/' $*