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='
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
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
>
> -
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
4 matches
Mail list logo