3 ms·
oh very nice. My machine doesn't have a `tail -r`, but it has `tac`, which I guess does the same thing. I tweaked your output to put author first, to make sor
by philsnow 6y ago
oh very nice. My machine doesn't have a `tail -r`, but it has `tac`, which I guess does the same thing.
I tweaked your output to put author first, to make sorting work better:
curl -s https://standardebooks.org/opds/all | awk '/<title>/ {split($0,a,">");split(a[2],b,"<")} /<name>/{split($0,c,">");split(c[2],d,"<");print d[1]" - "b[1]}' | sort
gives something like:
A. A. Milne - The Red House Mystery
A. Merritt - The Moon Pool
Aesop - Fables
Agatha Christie - Poirot Investigates
Agatha Christie - The Man in the Brown Suit
Agatha Christie - The Murder on the Links
Agatha Christie - The Mysterious Affair at Styles
Agatha Christie - The Secret Adversary
Aldous Huxley - Antic Hay
...