Created
September 24, 2023 12:04
-
-
Save pkozelka/3bf46ecee9ae1c1c756cdb4a99ffb021 to your computer and use it in GitHub Desktop.
Remove trailing whitespaces
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
find * -name '*.java' | xargs sed -i 's:^\(.*[^[:space:]]\)[[:space:]]*$:\1:;' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment