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