I am using
wget to download a number of json files from a website. However, I want to perform some sort of function on these files to reduce their size before downloading the next file.
Is there a way to specify a
wget command and then perform a series of functions on the downloaded file before the next file is downloaded?
An example of my script is below:
for FILE in wget -A json -np -nd -r **website URL** do **somefunctions** rm $FILE done
but this doesn't seem to work.