$ for i in `cat ~/imageList-karrepad.txt`; do echo $i | perl -e 'while (<>) {chomp $_; $url = $_; $path = $url; $path =~ s/.*\:\/\/(.*)\?.*/$1/g; system ("mkdir -p `dirname $path` 2> /dev/null") == 0 or die "failed to create $path. exiting...\n"; print "$url -O $path\n"; }' | xargs wget; done
Last active
July 17, 2024 14:48
-
-
Save CyberSecutor/72e9df46b7e0e4a4a62bac87c254de27 to your computer and use it in GitHub Desktop.
Usefull bash scripts/commands
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment