#!/bin/sh echo STARTFILE > test.html curl $1 | sed -e 's/> test.html echo ENDFILE >> test.html cat test.html | sed -n 's/