Timeline for Is it possible to pass arguments to a sed script?
Current License: CC BY-SA 3.0
2 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 27, 2015 at 19:48 | comment | added | don_crissti | If foo occurs 10.000 times in some-file.txt this will run 10.000 additional substitutions. You're better off altering the script: sed 's/#ARG1#/bar/' foo-to-bar.sed | sed -f - some-file.txt | |
| May 27, 2015 at 18:48 | history | answered | Bogdan Calmac | CC BY-SA 3.0 |