>> var3=`echo -e "$var1\n$var2"` >>...does the trick. It's the -e option in echo that's doing this, it allows the \n to be read and used as a new line. e.g. echo -e "$var1\n$var2" should read: a b but echo var3 after above would still give: a b Now what you should do is store the \n's in var3 like: var3=`echo "$var1\n$var2"` after which: echo -e var3 would give the desired output steve _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
- Bash Script Questions Brad Doster
- Re: Bash Script Questions Dave Ihnat
- Re: Bash Script Questions Matthew Melvin
- RE: Bash Script Questions Brad Doster
- RE: Bash Script Questions Matthew Melvin
- RE: Bash Script Questions Brad Doster
- RE: Bash Script Questions Luke C Gavel
- RE: Bash Script Questions Stephen_Reilly
- RE: Bash Script Questions Stephen_Reilly
- RE: Bash Script Questions Brad Doster
- RE: Bash Script Questions Matthew Melvin
- RE: Bash Script Questions Brad Doster
- RE: Bash Script Questions Brad Doster
- RE: Bash Script Questions Brad Doster
- Re: Bash Script Questions Dave Ihnat
- RE: Bash Script Questions Brad Doster
- RE: Bash Script Questions Brad Doster
- RE: Bash Script Questions Brad Doster
