Skip to content

Instantly share code, notes, and snippets.

@karl82
Created February 11, 2023 22:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karl82/13d6ea7cf4ea86b1eea82e8f65540b6b to your computer and use it in GitHub Desktop.
Save karl82/13d6ea7cf4ea86b1eea82e8f65540b6b to your computer and use it in GitHub Desktop.
Extract invoice IDs from Apple Payments
gsed -n -e 's|.*Display.OrderID">\(.*\)</span.*|\1|p' \
-e 's|.*RAP2.PurchaseList.PLIDetails.Display.Title.*">\(.*\)</div></l.*|\1|p' \
-e 's|.*"RAP2.PurchaseList.PLIDetails.Display.Publisher.*>\(.*\)</div.*|\1|p' \
-e 's|.*pli-media-type.*>\(.*\)</div.*|\1|p' \
-e 's|.*PurchaseHeader.Display.Date.*>\(.*\)</span> .*|\1|p' < page.html \
|pr -5 -a -t -s';' |mvim -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment