#!/bin/bash # head -n 15 | grep "//' | sed 's/<\/title>//' INPUT="$(cat input.txt)" for url in $INPUT do if [ "$url" = "STOP" ]; then echo "Stopping..." exit fi wget --user-agent=Firefox -O rss.html "$url" TITLE="$(cat rss.html | head -n 15 | grep "//' | sed 's/<\/title>//')" echo $TITLE > title cat title #echo "`cat title`~$url" >> test.csv echo $url~$TITLE >> test.csv done