I would like to rsync some HTML files to a webserver that are in production form. To get them in production form I have to trivially insert a ".production" string in a script tag. I can do this with this sed command:
sed 's/steal\.js/steal\.production\.js/g' */*.html
I know I can sed
-i inplace and rysync those files then sed
-i them back when I'm done, but I'd like to be able to do something like rsync standard out to a destination file on the remote machine. This way I wouldn't ever need to worry about corrupting my html files by canceling the script in mid transfer.
Any recommendations on how to approach this?