I am trying to recursively download several files using wget -m
, and I intend to grep
all of the downloaded files to find specific text. Currently, I can wait for wget
to fully complete, and then run grep. However, the wget
process is time consuming as there are many files and instead I would like to show progress by grep
-ing each file as it downloads and printing to stdout
, all before the next file downloads.
Example:
download file1
grep file1 >> output.txt
download file2
grep file2 >> output.txt
...
Thanks for any advice on how this could be achieved.