sign in
|
add example
|
see also:
awk
,
ed
,
grep
,
tr
,
perlre
sed
stream editor for filtering and transforming text
[
package
|
man 1
|
usage
|
info
|
wiki
|
homepage
]
example
Find and replace strings in OSX
copy
10
1
Find and replace strings in OSX
sed -i "" 's/find/replace/g' views.py
sed
osx
find
replace
1 year ago
george
3 |
Result:
find and replace, the string "find" with the string "replace" in views.py in osx
Options:
sed -i
,
sed --in-place
-i[SUFFIX], --in-place[=SUFFIX] edit files in place (makes backup if extension supplied)
Comment
Login to post: