Skip to content

Instantly share code, notes, and snippets.

@flakyfilibuster
Last active August 29, 2015 14:04
Show Gist options
  • Save flakyfilibuster/ea46bd5ca125ff1bd8a7 to your computer and use it in GitHub Desktop.
Save flakyfilibuster/ea46bd5ca125ff1bd8a7 to your computer and use it in GitHub Desktop.
Extracts links of input file and downloads content
#!/bin/bash
INPUT=$1
sed -n 's/.* src="\(https:\/\/.*\)".*/\1/p' $INPUT | xargs -I{} curl -O {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment