Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3
On 22/03/10 10:37, PƔdraig Brady wrote:
> On 22/03/10 03:26, PƔdraig Brady wrote:
>> Right. So the logic would be something like:
>
> Here is a tested `replace` script which is backwards
> compatible (non atomically) with older coreutils.
Grr, there is a replace util that comes with mysql-server :(
http://manpages.ubuntu.com/manpages/dapper/en/man1/replace.1.html
So that probably means we need to go with a different name.
`inplace` is the next best one I can think of which
at least mirrors the well known sed --in-place and perl -i options.
Also as Jim previously mentioned, the script would benefit from
passing --backup onto cp/mv.
cheers,
PƔdraig.