[lug] Changing files on-the-fly
rm at fabula.de
rm at fabula.de
Tue Sep 16 10:00:40 MDT 2003
On Tue, Sep 16, 2003 at 09:51:15AM -0600, Zan Lynx wrote:
>
> As someone else said, perl has the -i switch which will do the temporary
> file in the background where you cannot see it.
>
> Editing the file in-place can be done, of course. The method I saw used
> mmap and truncate and memmove. That is probably more effort than you'd
> like.
Nice way to do it from within your own code, but AFAIK there's no mmap
in bash (yet ?).
RalfD :-)
> --
> Zan Lynx <zlynx at acm.org>
More information about the LUG
mailing list