jeroenjanssens / data-science-at-the-command-line

Data Science at the Command Line
https://datascienceatthecommandline.com
Other
3.77k stars 766 forks source link

Ch03 typo in code for curl and pup #133

Open lobaluna opened 2 years ago

lobaluna commented 2 years ago

This is the line that contains the typo:

$ curl -s "https://en.wikipedia.org/wiki/List_of_windmills_in_Friesland" |
> pup -n 'table.wikitable tr'

The greater-than (>) sign must go off, according to pup version (0.4.0) in image container pulled today in Manjaro:

$ curl -s "https://en.wikipedia.org/wiki/List_of_windmills_in_Friesland" | > pup -n 'table.wikitable tr'

(I found a similar paragraph later on, and I see that what is intended  to use is / for changing line; so the > represents the command prompt in a new line. And that's the error, because it is a pipe | sign what's in the book…)

(Also works the alternative command that I wrote first.)