trap "rm -f $tmp" HUP PIPE INT QUIT TERM EXIT
wget_opts=(--output-document=$tmp $wget_opts)
}
- fn=$(url-to-filename $url)-$(strftime %Y%m%d-%H%M%S)
+ fn=$(strftime %Y%m%d-%H%M%S)-$(url-to-filename $url)
wget $wget_opts --output-file=warcs.log --warc-file=$dst/$fn $url
print $dst/$fn.warc
done < $new