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

Ben Eisenbraun bene at klatsch.org
Wed Jun 27 15:13:40 EDT 2012


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/filename.txt' 

You can read about the quoting rules in the man page as well.

-b

--
if you can't be just, be arbitrary.             <william s. burroughs>



More information about the Discuss mailing list