Timeline for How to delete the n-th word from standard input?
Current License: CC BY-SA 4.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 2, 2022 at 17:41 | comment | added | Ed Morton |
Since -z for reading the whole file into memory requires GNU sed you could also take advantage of other GNU-isms and abbreviate that to sed -Ez 's/\S+//8'
|
|
| Sep 2, 2022 at 17:01 | comment | added | steeldriver |
Hmm... what does this do that the naive sed -z 's/[^[:space:]]\{1,\}//8' doesn't?
|
|
| Sep 2, 2022 at 16:45 | history | edited | hugomg | CC BY-SA 4.0 |
new input, to match the edited question
|
| Sep 2, 2022 at 16:32 | history | answered | sseLtaH | CC BY-SA 4.0 |