I\'m trying to match a pattern from piped input and/or a file, and then remove from the matched lines to the end of the file, inclusive. I\'ve looked everywhere, but can\'t
sed -e '/^-----THIS STUFF IS USELESS-----$/,$ d'