help-bash
[Top][All Lists]
Advanced

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

Re: Prepending text to the beginning of a file


From: Alex fxmbsw7 Ratchev
Subject: Re: Prepending text to the beginning of a file
Date: Fri, 17 Jun 2022 15:49:43 +0200

On Fri, Jun 17, 2022, 15:47 Davide Brini <dave_br@gmx.com> wrote:

> On Fri, 17 Jun 2022 18:35:25 +0500, Akbarkhon Variskhanov
> <akbarkhon.variskhanov@gmail.com> wrote:
>
> > In my understanding, it should let me, well, read from and write to the
> > file for in-place editing.
> >
> > Let's say that I open a file for both reading and writing:
> > exec 3<> file
> > Next, I'd like to write to it:
> > echo "some rather long text" >&3
>
> This _overwrites_ whatever is at the beginning of the file, it does not
> insert.
>

'insert' .. is a micro function completly ( i dunno i guess ) nowhere in
posix and due to such not be implented, just as ipc and the rest..


> --
> D.
>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]