Skip to content

Instantly share code, notes, and snippets.

@vansosnin
Created September 26, 2016 17:42
Show Gist options
  • Save vansosnin/6e802ed3cf1b12cda898671f0d319219 to your computer and use it in GitHub Desktop.
Save vansosnin/6e802ed3cf1b12cda898671f0d319219 to your computer and use it in GitHub Desktop.
Remove newline at the end of file
perl -pi -e 'chomp if eof' filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment