This shows you the differences between two versions of the page.
| — |
replace_text_within_a_file [2009/06/17 16:38] (current) danux created |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | < Back to [[General Setup]] | ||
| + | ====== Replace Text Within a File ====== | ||
| + | |||
| + | |||
| + | find ./ -type f -exec sed -i 's/string1/string2/’ {} \; | ||