Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


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

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



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
>
>
>



BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org