Skip to content

Instantly share code, notes, and snippets.

@iandundas
Created July 20, 2014 12:15
Show Gist options
  • Save iandundas/7863c6c248f76e14a3a8 to your computer and use it in GitHub Desktop.
Save iandundas/7863c6c248f76e14a3a8 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'
@majormomogram
Copy link

same here, need help!

Hey folks!

This script has stopped working fine after updating to macOS Monterey.

I believe it's related to the new original output format.

“Currying is similar to partial application”

Excerpt From
Functional-Light JavaScript: Balanced, Pragmatic FP in JavaScript
Kyle Simpson
This material may be protected by copyright.

Any ideas on how to get it working with the new output format?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment