mirror of
https://github.com/azerothcore/azerothcore-wotlk.git
synced 2025-12-06 02:30:26 -08:00
feat(apps): Add a tool to remove trailing whitespaces (#4074)
This commit is contained in:
parent
3a5d6fd001
commit
ac6a968242
1 changed files with 3 additions and 0 deletions
3
apps/whitespace_remover/whitespace_remover.sh
Normal file
3
apps/whitespace_remover/whitespace_remover.sh
Normal file
|
|
@ -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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue