Timeline for grep from a specific value to specific value
Current License: CC BY-SA 4.0
2 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 7, 2023 at 13:41 | comment | added | Ed Morton |
That would fail if either of those specific timestamps did not exist in the input - don't do exact comparisons like that when trying to match within a range, use <= and/or >= comparisons instead (which you can't do with sed so use awk) so your code will work even if the exact range start/end strings are not present in the input, e.g. see unix.stackexchange.com/a/741504/133219.
|
|
| Mar 30, 2023 at 17:04 | history | answered | Mexanizm456 | CC BY-SA 4.0 |