Can I use sed to check the first line of some command\'s output (to stdout) and delete this very first line if it matches a certain pattern?
sed
Say, the co
You want to reference the 1st line, then say delete:
$ sed '1 d' file
No need for any pattern if you know which line you want to delete.
With a pattern, use this syntax:
$ sed '0,/pattern/ d' file