Created
October 18, 2018 09:25
-
-
Save ordovician/3861065b8b77b61ee9d81494b7810111 to your computer and use it in GitHub Desktop.
[Remove trailing whitespace] Allows you to do through all files in subdirecttory and remove any occurance of trailing whitespace. Make sure you got these files under version control as it will do in place replacement. #unix #shell #sed
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
find . -type f | xargs sed -i 's/[ \t]*$//' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment