Command to use: find . -type f -name '*.txt' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
Created
May 19, 2017 08:29
-
-
Save StevenPuttemans/a91253b0c9b59b27401802c959d7068e to your computer and use it in GitHub Desktop.
Remove all trailing whitespaces, from a set of given text files
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment