[Discuss] insert text in a large file without open it

Gregory Boyce gboyce at badbelly.com
Wed Jun 27 15:01:54 EDT 2012


Sounds like you just want to append.

echo "text to append" >> filename.txt

a single > overwrites the file.  double > appends to the end of the file.

On Wed, Jun 27, 2012 at 3:00 PM, aldo albanese <aldo_albanese at yahoo.com> wrote:
> Hi,
> I have a large text file, about 9 gig.  I would like to insert a text at the end of the file without open it, is it possible?
> I'm reading about sed command but is giving some errors.  This is what I'm using as syntax sed 'textaaa' filename.
>
> Thanks,
> Aldo
> _______________________________________________
> Discuss mailing list
> Discuss at blu.org
> http://lists.blu.org/mailman/listinfo/discuss



More information about the Discuss mailing list