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
The OSX version of sed
is not the same as those found in most Linux systems.
It extends the -i
option to give you the opportunity save a file with a different extension, but requires input for that extension.
If you just want to overwrite the file in place, you need to use sed -i "" ...sedCmd.... fileName
to rename your file in-place.
Per @JamesMcMahon 's comment, see here for the full doc for OSX/BSD sed.
I hope this helps.