GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
In the sed "s" (substitute) command, the first character after the "s" is the delimiter. This cannot be the same as characters in the arguments unless you "escape" the latter. Also, you left out the final delimiter.
sed -i 's/images/http:\/\/cache.reverbnation.com\/image/g' ajax_scaffold.css
sed: 1: "ajax_scaffold.css": command a expects \ followed by text
I generated a file with the same name--including the word "images"---and ran the above command (cut and paste). It worked fine.
Assuming that there were no typos, etc., I have a hunch that there is something in your file that is being interpreted by sed or by the shell. What you might do is copy portions of the file and see if you can isolate where the "funny" is.