The -i
option is not part of POSIX Sed. A more portable method would beto use Vim in Ex mode:
ex -sc '%s/alfa/bravo/|x' file
%
select all liness
replacex
save and close
The -i
option is not part of POSIX Sed. A more portable method would beto use Vim in Ex mode:
ex -sc '%s/alfa/bravo/|x' file
%
select all lines
s
replace
x
save and close