#!/bin/bash input=$1 output=$1.gen while IFS= read -r line do echo "http://$line" >> $output done < $input