Timeline for How do I filter certain lines except the ones following a pattern in AWK
Current License: CC BY-SA 4.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 3, 2020 at 21:07 | comment | added | Ed Morton | Depends if getline fails and/or whether there's a line after --- at the end of the input (in which case your script would silently print the PREVIOUS timestamp) and/or whether or not you want to do anything extra/different with the code (e.g. as an extremely basic example try adding a debugging print to display every line as it's read - without getline you just stick {print} at the front of the script which is a complete no-brainer, with it you have to think about it and add multiple prints). Using getline is one of those things that only looks simple but is actually a can of worms | |
| Jun 3, 2020 at 21:01 | comment | added | Stalin Vignesh Kumar | @EdMorton : Thanks to you , will go through that... but for this solution its not pretty bad i guess... | |
| Jun 3, 2020 at 20:55 | comment | added | Ed Morton | See awk.freeshell.org/AllAboutGetline for issues with the awk getline solution. | |
| Jun 3, 2020 at 10:15 | history | edited | Stalin Vignesh Kumar | CC BY-SA 4.0 | deleted 4 characters in body |
| Jun 3, 2020 at 10:05 | history | edited | Stalin Vignesh Kumar | CC BY-SA 4.0 | added 91 characters in body |
| Jun 3, 2020 at 10:01 | comment | added | Stalin Vignesh Kumar | cool ... with brach... | |
| Jun 3, 2020 at 9:49 | comment | added | Sundeep | nice... code golf with GNU sed: sed -nE '/FINE/{s/.*: -/-/; Ta; N; :a p}' | |
| Jun 3, 2020 at 9:46 | history | edited | Stalin Vignesh Kumar | CC BY-SA 4.0 | added 243 characters in body |
| Jun 3, 2020 at 9:41 | history | answered | Stalin Vignesh Kumar | CC BY-SA 4.0 |