Timeline for Remove extra header lines from file, except for the first line
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 27, 2016 at 13:01 | comment | added | Stéphane Chazelas | Or sed '1!{/ID/d;}' | |
| Jan 26, 2016 at 22:28 | comment | added | user2066657 | aaaand -i for the in-place edit win. | |
| Jan 26, 2016 at 19:35 | comment | added | mikeserv | Not w/ sane seds, no. | |
| Jan 26, 2016 at 19:09 | comment | added | bkmoney | Hm I thought you could omit the semicolon for only 1 command, but ok. | |
| Jan 26, 2016 at 19:09 | history | edited | bkmoney | CC BY-SA 3.0 | added 1 character in body |
| Jan 26, 2016 at 19:08 | comment | added | Jeff Schaller♦ | 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) | |
| Jan 26, 2016 at 19:07 | history | edited | bkmoney | CC BY-SA 3.0 | deleted 1 character in body |
| Jan 26, 2016 at 19:05 | history | edited | mikeserv | CC BY-SA 3.0 | added 1 character in body |
| Jan 26, 2016 at 19:05 | history | answered | bkmoney | CC BY-SA 3.0 |