Skip to content

Instantly share code, notes, and snippets.

@iandundas
Created July 20, 2014 12:15
Show Gist options
  • Star 27 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • 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'
@SiarheiBobryk
Copy link

SiarheiBobryk commented Nov 4, 2021

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?

@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