Timeline for How to instruct sed to substitute only once while using multiple substitute expressions?
Current License: CC BY-SA 4.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 15, 2020 at 10:38 | comment | added | Stalin Vignesh Kumar | Yeah correct , even for all gsub also we don't require $0 i think... | |
| Apr 14, 2020 at 12:25 | comment | added | glenn jackman | More idiomatic: awk 'gsub("something","else",$0) || gsub("one","two",$0) || gsub("two","three",$0) {print; exit}' | |
| Apr 14, 2020 at 7:47 | history | answered | Stalin Vignesh Kumar | CC BY-SA 4.0 |