3 ms·
# This downloads all the links in that page # Just save README.md to the folder of your choice sed -ne 's/.*\(http[^")]*\).*/\1/p' < README.md | xargs wget
by leblancfg 10y ago
# This downloads all the links in that page
# Just save README.md to the folder of your choice
sed -ne 's/.*\(http[^")]*\).*/\1/p' < README.md | xargs wget -U 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0'
- leblancfg 10y agoTurns out, there are also a bunch of extensionless files in there, too. for file in *; do if [ -f $file ] && [ ${file:(-3)} != "pdf" ]; then mv "$file" "${file}.pdf"; fi done