Created
October 15, 2018 18:06
-
-
Save colehocking/67dae5614c755630913f715e4b24f97e to your computer and use it in GitHub Desktop.
Remove a trailing period from file EOLs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Remove a trailing period | |
FILE="$1" | |
sed -e 's/\.$//g' ${FILE} -i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment