Skip to content

Instantly share code, notes, and snippets.

@colehocking
Created October 15, 2018 18:06
Show Gist options
  • Save colehocking/67dae5614c755630913f715e4b24f97e to your computer and use it in GitHub Desktop.
Save colehocking/67dae5614c755630913f715e4b24f97e to your computer and use it in GitHub Desktop.
Remove a trailing period from file EOLs
#!/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