sed – replace patterns with space in filenames on OS X

I have a bunch of text files (named install-*) where I need to replace the expresion “curl -L” by the expression “curl -k -L”. I am on OS X 10, Yosemite.

The following attempts don’t work:

sed -e  "s/'curl -L'/'curl -k -L'/g" install*

sed -i '' -e "s/'curl -L'/'curl -k -L'/g" install*

Then the contents of the files are shown (as if I had typed cat), but replacement doesn’t occur.

What am I doing wrong?


Download sed.replace.patterns.with.space.in.filenames.on.os.x.zip
Direct Link


Download


Download sed.replace.patterns.with.space.in.filenames.on.os.x.zip
Mediafire


Download


Download sed.replace.patterns.with.space.in.filenames.on.os.x.zip
Oboom


Download

Both comments and pings are currently closed.

Comments are closed.