File size: 382 Bytes
77f91c1 |
1 2 3 4 5 6 7 8 9 10 11 |
#!/bin/bash
# download file containing urls
curl http://webdatacommons.org/structureddata/2022-12/files/file.list > urls.txt
# create output file
touch output.txt
# use parallel command to download/grep in parallel
cat urls.txt | pv -cN Input | parallel -j 4 "curl -s {} | zcat | grep -e '<http://schema.org/FAQPage>' -e '<http://schema.org/HowTo>'" | pv -cN Output > output.txt
|