Files
moonwell-core/apps/whitespace_remover/whitespace_remover.sh
T
2025-08-12 00:41:59 +04:00

4 lines
217 B
Bash

# 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