Timeline for print or miss string based on the result of simple math between fields of current and previous lines with awk
Current License: CC BY-SA 4.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 3, 2022 at 5:41 | comment | added | Thibault LE PAUL | @user531977 {statement}{statement} is correct but statement;statement maybe more readable. A one-liner is hard to read | |
| Jul 3, 2022 at 5:37 | history | edited | Thibault LE PAUL | CC BY-SA 4.0 | one-liner |
| Jul 2, 2022 at 23:01 | comment | added | user531977 | That's just excellent, exactly what I was looking for! Final line will look like that: awk 'prev!=int($2) {{prev=int($2)} {print $0}}' test.csv | |
| Jul 1, 2022 at 4:10 | vote | accept | user531977 | ||
| Jul 1, 2022 at 3:50 | vote | accept | user531977 | ||
| Jul 1, 2022 at 4:08 | |||||
| Jul 1, 2022 at 3:50 | vote | accept | user531977 | ||
| Jul 1, 2022 at 3:50 | |||||
| Jun 30, 2022 at 10:20 | history | answered | Thibault LE PAUL | CC BY-SA 4.0 |