Following sed command is not working on my lion mac.
find . -type f -exec sed -i \'s/user_dashboard/user/g\' {} \\;
I am getting this error
replacing text inside a text file on the fly with sed on mac is possible.
the command is just a little different.
with: -i , you specify an extension where sed will save the original file prior to the sed operation.
run the command as:
$ sed -i _bakup -E 's/THESTRING/THEGRANDSTRING' /tmp/jestinkt.txt