Skip to content

Instantly share code, notes, and snippets.

@kbaird
Created October 17, 2013 19:13
Show Gist options
  • Save kbaird/7030554 to your computer and use it in GitHub Desktop.
Save kbaird/7030554 to your computer and use it in GitHub Desktop.
Remove trailing whitespace from file args
#!/bin/bash
perl -pi -e 's#\s*\n#\n#g' $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment