Downloading file

curl https://example.com | \
grep --only-matching 'src="[^"]\*.[png]"' | \
cut -d \" -f2 | \
while read i; do curl https://example.com/"${i}" \
-o "${i##\*/}"; done

Download all PNG files from the site (using GNU grep)

Comments