diff --git a/apps/whitespace_remover/whitespace_remover.sh b/apps/whitespace_remover/whitespace_remover.sh new file mode 100644 index 000000000..788d561e9 --- /dev/null +++ b/apps/whitespace_remover/whitespace_remover.sh @@ -0,0 +1,3 @@ +# Change '*.cpp' and '*.h' to the extension you want to remove whitespaces in. +find -name '*.cpp' -print0 | xargs -r0 sed -e 's/[[:blank:]]\+$//' -i +find -name '*.h' -print0 | xargs -r0 sed -e 's/[[:blank:]]\+$//' -i