On Mon, 06 Feb 2006 22:32:51 -0500 "Kevin B. O'Brien" <[EMAIL PROTECTED]> wrote:
> At 06:58 PM 2/6/2006, RickSisler said something remarkably like (but > somehow subtly different from): > >Kevin B. O'Brien ([EMAIL PROTECTED]) wrote: > >[...] > > > OK, I got it working. The problem was that I left out some quote > > > marks in what I was echoing. > > > > > > Now I am getting everything as one line. How do I insert a > > > "return" to get a new line? > >Kevin, > >use the \n character wherever you want a new line. Like this: > >echo -e "this is \n a new line" > > > >you will also need the -e option to evaluate the backlashed escaped > >characters like \n. > > > >man echo for more info. > > > >or you can use the fmt command to limit the width, for example, > >from Glenn's script, pipe the output of fortune to fmt (68 characters > >wide): > > Something about this is still eluding me. I read the man echo, and > also the info coreutils echo, and I am still getting everything as > one continuous text string. For instance, I want something like this: > > Kevin B. O'Brien > [EMAIL PROTECTED] > > So, my first attempt was: > > echo "Kevin B. O'Brien" > echo "[EMAIL PROTECTED]" > > and the result of this was: > > Kevin B. O'Brien [EMAIL PROTECTED] > > So, after reading the man echo page, I tried it like this: > > echo -e \n "Kevin B. O'Brien" > echo -e \n "[EMAIL PROTECTED]" > > And this produced: > > n Kevin B. O'Brien n [EMAIL PROTECTED] > > Hmmm, still not quite right. Then I thought maybe it needs to be in > the string, so I tried: > > echo -e "\nKevin B. O'Brien" > echo -e "[EMAIL PROTECTED]" > > But this just got me back to: > > Kevin B. O'Brien [EMAIL PROTECTED] > > So, what am I missing? > > Thank you, > > > -- > Kevin B. O'Brien TANSTAAFL > [EMAIL PROTECTED] Linux User #333216 > The most likely way for the world to be destroyed, most experts agree, > is by accident. That's where we come in; we're computer professionals. > We cause accidents. --Nathaniel Borenstein > > Help fight SPAM. Join CAUCE. http://www.cauce.org/ > > Apparently its an Evolution thing. http://mail.gnome.org/archives/evolution-list/2004-February/msg00356.html Just one more reminder why I prefer Kmail ;-) derek ____________________________________________________ Want to buy your Pack or Services from Mandriva? Go to http://store.mandriva.com Join the Club : http://www.mandrivaclub.com ____________________________________________________
