llvm-for-llvmta/utils/lint/remove_trailing_whitespace.sh

7 lines
132 B
Bash
Raw Normal View History

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