Re: problem with \n and variables in bash script

2002-10-16 Thread Iñaki Martínez
Hi!!! Thank you both... Colin, Quote correctly. Also, you can probably drop the -e. echo "$SALIDA" really i feel no words.. :-( > > So my question is how to get \n processed with variables. > > You need to set the IFS variable. Read 'man bash'. Just put > > IFS='

Re: problem with \n and variables in bash script

2002-10-15 Thread Claudio Bley
On Tue, 2002-10-15 at 17:27, Iñaki Martínez wrote: > > HI > > > I have this bash script: > > #!/bin/bash > > > > SALIDA=$(diff file1 file2) > > if [ $? == 1 ] > then >echo -e $SALIDA | mail -s variable

Re: problem with \n and variables in bash script

2002-10-15 Thread Colin Watson
On Tue, Oct 15, 2002 at 05:27:28PM +0200, I?aki Mart?nez wrote: > SALIDA=$(diff file1 file2) > > if [ $? == 1 ] > then >echo -e $SALIDA | mail -s variable my_email >diff file1 file2 | mail -s directly my_email > fi > > -

problem with \n and variables in bash script

2002-10-15 Thread Iñaki Martínez
HI I have this bash script: #!/bin/bash SALIDA=$(diff file1 file2) if [ $? == 1 ] then echo -e $SALIDA | mail -s variable my_email diff file1 file2 | mail -s directly my_email fi