YouCompleteMe/cpp/llvm/utils/lint/remove_trailing_whitespace.sh
2012-07-05 17:51:06 -07:00

7 lines
132 B
Bash
Executable File

#!/bin/sh
# Deletes trailing whitespace in-place in the passed-in files.
# Sample syntax:
# $0 *.cpp
perl -pi -e 's/\s+$/\n/' $*