Why not create a further temporary file with the "prepend" in it, then
append the original?
Chris.
On 20/12/2007, Keir Whitlock <keir.whitlock@???> wrote:
>
> Hi,
> A quick one for you, echo "hi" >> /tmp/file will append hi to the
> end of file, but how do I prepend it to the top of the file?
>
>
> Cheers,
> Keir
>
> --
> Please post to: Hampshire@???
> Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
> LUG URL: http://www.hantslug.org.uk
> --------------------------------------------------------------
>