Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 3
    nice; or to be more specific with the pattern matching, sed '2,${/^ID Data1 Data2$/d;}' file (using the right number of spaces between the columns, of course) Commented Jan 26, 2016 at 19:08
  • Hm I thought you could omit the semicolon for only 1 command, but ok. Commented Jan 26, 2016 at 19:09
  • Not w/ sane seds, no. Commented Jan 26, 2016 at 19:35
  • aaaand -i for the in-place edit win. Commented Jan 26, 2016 at 22:28
  • 5
    Or sed '1!{/ID/d;}' Commented Jan 27, 2016 at 13:01