scripts

scripts to make my pc work
Index Commits Files Refs
nasa_img_downloader (226B)
   1 #!/bin/sh
   2 
   3 # downloads a list of images given as input
   4 
   5 [ -z "$1" ] && exit 1
   6 
   7 while read line; do
   8     url="$line"; 
   9     imgname=$(echo "$url" | cut -d "/" -f 12); curl -# $url > $imgname;
  10     echo "\nDownloading: $imgname";
  11 done < $1