Timeline for Insert newline before each line matching a pattern unless the previous line is already empty
Current License: CC BY-SA 3.0
17 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 10, 2023 at 12:52 | comment | added | jubilatious1 |
Note, if you want to limit blank lines in your file you can alway run a substitution after-the-fact. In the Raku programming language (fomerly Perl_6), running the one-liner raku -e 'put S/\n**3..*/\n\n/ given slurp();' converts any two-or-more consecutive blank lines to a single blank line. raku.org
|
|
| Jul 10, 2023 at 5:46 | answer | added | jubilatious1 | timeline score: 0 | |
| Nov 17, 2016 at 23:47 | answer | added | Kaz | timeline score: 0 | |
| Nov 15, 2016 at 0:13 | answer | added | Wildcard | timeline score: 2 | |
| Nov 14, 2016 at 21:00 | answer | added | DJMcMayhem | timeline score: 4 | |
| Nov 14, 2016 at 15:43 | history | tweeted | twitter.com/StackUnix/status/798189703052857348 | ||
| Nov 14, 2016 at 15:12 | answer | added | don_crissti | timeline score: 3 | |
| Nov 14, 2016 at 14:55 | answer | added | JJoao | timeline score: 2 | |
| Nov 14, 2016 at 14:44 | vote | accept | Cram | ||
| Nov 14, 2016 at 14:43 | vote | accept | Cram | ||
| Nov 14, 2016 at 14:44 | |||||
| Nov 14, 2016 at 14:37 | history | edited | don_crissti | CC BY-SA 3.0 |
edited tags; edited title
|
| Nov 14, 2016 at 14:36 | answer | added | Stéphane Chazelas | timeline score: 6 | |
| Nov 14, 2016 at 14:33 | history | edited | Cram | CC BY-SA 3.0 |
added 105 characters in body
|
| Nov 14, 2016 at 14:31 | comment | added | Cram |
That's right. And yes it is possible that the pattern can occur multiple times in a file. After looking into the answer from @maulinglawns it's probably better to use another language because grep is only applied to the first found line
|
|
| Nov 14, 2016 at 14:10 | answer | added | anon | timeline score: 3 | |
| Nov 14, 2016 at 13:55 | review | First posts | |||
| Nov 14, 2016 at 14:01 | |||||
| Nov 14, 2016 at 13:54 | history | asked | Cram | CC BY-SA 3.0 |