Skip to content

Instantly share code, notes, and snippets.

@TobleMiner
Created August 28, 2019 13:41
Show Gist options
  • Save TobleMiner/9a85712fb187bb1ea992b5801eb23391 to your computer and use it in GitHub Desktop.
Save TobleMiner/9a85712fb187bb1ea992b5801eb23391 to your computer and use it in GitHub Desktop.
Simple funtion for removing trailing whitespace from source code files
remove_trailing_whitespace() {
sed -i 's/[[:space:]]\+$//g' $@
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment