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

2012-06-27 Thread Gregory Boyce
t this message > bash: !sphere875": event not found. unusual, it takes the "Un" from the > error given. > > Aldo > > -- > *From:* Gregory Boyce > *To:* aldo albanese > *Cc:* "discuss@blu.org" > *Sent:* Wednesd

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

2012-06-27 Thread aldo albanese
Ben, it worked,  thank you guys. Aldo From: Ben Eisenbraun To: aldo albanese Cc: Gregory Boyce ; "discuss@blu.org" Sent: Wednesday, June 27, 2012 3:13 PM Subject: Re: [Discuss] insert text in a large file without open it Hi Aldo, >

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

2012-06-27 Thread Ben Eisenbraun
Hi Aldo, > Hi Greg, > I appreciated you fast response.   > when I execute the following  > echo "Un!sphere8" >> '/user/filename.txt' ! is a reserved word in the shell. 'man bash' for the rest of them. Instead use one of: echo Un\!sphere8 >> '/user/filename.txt' echo 'Un!sphere8' >> '/user/filen

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

2012-06-27 Thread aldo albanese
__ From: Gregory Boyce To: aldo albanese Cc: "discuss@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 >

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

2012-06-27 Thread Gregory Boyce
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 wrote: > Hi, > I have a large text file, about 9 gig.  I would like to insert a text at the > end

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

2012-06-27 Thread aldo albanese
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