#!/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 '' -e ''" | pv -cN Output > output.txt