[Discuss] insert text in a large file without open it
Gregory Boyce
gboyce at badbelly.com
Wed Jun 27 15:18:30 EDT 2012
Try ' quotes instead of ". ! Has special shell meanings.
On Jun 27, 2012 3:09 PM, "aldo albanese" <aldo_albanese at yahoo.com> wrote:
> Hi Greg,
> I appreciated you fast response.
> when I execute the following
> echo "Un!sphere8" >> '/user/filename.txt'
> I get this message
> bash: !sphere875": event not found. unusual, it takes the "Un" from the
> error given.
>
> Aldo
>
> ------------------------------
> *From:* Gregory Boyce <gboyce at badbelly.com>
> *To:* aldo albanese <aldo_albanese at yahoo.com>
> *Cc:* "discuss at blu.org" <discuss at blu.org>
> *Sent:* Wednesday, June 27, 2012 3:01 PM
> *Subject:* Re: [Discuss] insert text in a large file without open it
>
> 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