Sed Hints

Delete the first occurrence of a pattern in a file.

sed '/foo/{x;/^$/d;}'