Wget improvement
What about a single wget command instead of wget | grep | sed | bash
?
wget -e robots=off -r -N -nd --no-parent -A 'SHA512SUMS*,debian-?.?.?-amd64-netinst.iso' \
-O debian-netinst-latest.iso \
cdimage.debian.org/debian-cd/current/amd64/iso-cd/
This is a single process instead of 6 (not counting SHA512SUMS).
It also improves readability.
Cheers k.