Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mtigdemir/90a2ab7454dc18c34d47245569e9ac39 to your computer and use it in GitHub Desktop.
Save mtigdemir/90a2ab7454dc18c34d47245569e9ac39 to your computer and use it in GitHub Desktop.
# strip out iBooks citation
sed -E -e 's/^[ ]?[0-9]* //g' | sed -E -e 's/“[ ]?[0-9]?[ ]?//g' | sed -E -e 's/”$//g' | sed -E -e 's/^(Excerpt From).*//g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment