Skip to content

Instantly share code, notes, and snippets.

@StevenPuttemans
Created May 19, 2017 08:29
Show Gist options
  • Save StevenPuttemans/a91253b0c9b59b27401802c959d7068e to your computer and use it in GitHub Desktop.
Save StevenPuttemans/a91253b0c9b59b27401802c959d7068e to your computer and use it in GitHub Desktop.
Remove all trailing whitespaces, from a set of given text files

Command to use: find . -type f -name '*.txt' -exec sed --in-place 's/[[:space:]]\+$//' {} \+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment