[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Linux question



> Hi list,
>
> I have tralala.html on my site.
> I have several other domains on the same server with the same page
> (tralala.html)
>
> Now I adjust my tralala.html page, and want to REPLACE all the other
> tralala.html pages on that server, with the exact tralala.html as mine.
> I know this is possible, but don't know the exact command.
>
> Can someone help me with this please ?
>
> Thanks,
> Bob Lenaerts

One way is whith a command-line loop.  Log in through ssh and try this:
You may need to unalias cp, so that you don't have to say "y" to every cp
question (cp is aliased to cp -i by default)
Move the source copy to some outside path, like /root/tralala.html.
Next we assume all the ones you wish to replace are in /home/sites/ or
whatever.
# unalias cp
# for i in `find /home/ -type f -name tralala.html`; do cp
/root/tralala.html $i; done

Should work, but try with a test file first.