Monday, November 19, 2012

Copy list of movies - linux wget

#!/bin/bash

FILENAME="movies.txt"
echo $FILENAME
count=0
cat $FILENAME | while read LINE
do
       let count++
       echo $LINE
       wget $LINE
      
done

echo -e "\nTotal: $count movies copied"

No comments:

Post a Comment