For example, if you do the following
sed -i -e 's/# gem "rails"/gem "rails"/' ./Gemfile
An unnecessary file named Gemfile-e
is created.
Put " "
after the -i
option.
sed -i "" -e 's/# gem "rails"/gem "rails"/' ./Gemfile
Recommended Posts