$ cat yourfilehost.list http://www.yourfilehost.com/media.php?cat=video&file=02111.wmv http://www.yourfilehost.com/media.php?cat=video&file=02112.wmv http://www.yourfilehost.com/media.php?cat=video&file=02113.wmv http://www.yourfilehost.com/media.php?cat=video&file=02114.wmv http://www.yourfilehost.com/media.php?cat=video&file=02115.wmv $ sed 's/^/sh hoge.sh -u "/;s/$/" >>log.txt/;' yourfilehost.list > yourfilehost.list.sh $ cat yourfilehost.list.sh sh hoge.sh -u "http://www.yourfilehost.com/media.php?cat=video&file=02111.wmv" >>log.txt sh hoge.sh -u "http://www.yourfilehost.com/media.php?cat=video&file=02112.wmv" >>log.txt sh hoge.sh -u "http://www.yourfilehost.com/media.php?cat=video&file=02113.wmv" >>log.txt sh hoge.sh -u "http://www.yourfilehost.com/media.php?cat=video&file=02114.wmv" >>log.txt sh hoge.sh -u "http://www.yourfilehost.com/media.php?cat=video&file=02115.wmv" >>log.txt $ sh yourfilehost.list.sh