Miscellany
public shellscript v1 · immutable#!/bin/bash# head -n 15 | grep "<title" | sed 's/<title*>//' | sed 's/<\/title>//'INPUT="$(cat input.txt)"for url in $INPUTdoif [ "$url" = "STOP" ]; thenecho "Stopping..."exitfiwget --user-agent=Firefox -O rss.html "$url"TITLE="$(cat rss.html | head -n 15 | grep "<title" | line | sed 's/<title*>//' | sed 's/<\/title>//')"echo $TITLE > titlecat title#echo "`cat title`~$url" >> test.csvecho $url~$TITLE >> test.csvdone