Timeline for Insert newline before each line matching a pattern unless the previous line is already empty
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 13, 2017 at 12:36 | history | edited | CommunityBot |
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
|
|
| Nov 25, 2016 at 9:26 | history | undeleted | don_crissti | ||
| Nov 25, 2016 at 9:25 | history | deleted | don_crissti | via Vote | |
| Nov 14, 2016 at 15:30 | comment | added | don_crissti |
Though this solution will not insert a newline before the first line of input if it matches... which may or may not be what you want. To always insert add -e '1{/pattern/{x;p;x;};}' before -e 'tD'
|
|
| Nov 14, 2016 at 15:12 | history | answered | don_crissti | CC BY-SA 3.0 |