Timeline for Find matching text in consecutive lines and increment numeric value in the following line
Current License: CC BY-SA 4.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 8, 2020 at 14:56 | comment | added | Ed Morton | @ranjithjn no tool (sed, perl, ruby, whatever) really updates the file "inplace", they all use a temp file behind the scenes so there's really no benefit to doing "inplace" editing vs just writing tmp=$(mktemp); tool 'script' file > "$tmp" && mv "$tmp" file for any given tool. Having said that, GNU awk has -i inplace to do "inplace" editing just like perl and GNU sed have -i. | |
| Dec 8, 2020 at 9:27 | comment | added | ranjithjn | Can i update the file inplace ? | |
| Dec 8, 2020 at 6:33 | history | answered | αғsнιη | CC BY-SA 4.0 |