FC3T3
Rick Stevens
rstevens at vitalstream.com
Tue Oct 26 00:53:20 UTC 2004
W. Guy Thomas wrote:
> On Mon, 2004-10-25 at 19:35 -0400, Graham Campbell wrote:
>
>>On Mon, 2004-10-25 at 19:14, W. Guy Thomas wrote:
>>
>>>On Mon, 2004-10-25 at 09:31 +0100, Dave Cross wrote:
>>>
>>>>On Mon, 25 Oct 2004 16:11:59 +0800 (HKT), HaJo Schatz <hajo at hajo.net> wrote:
>>>>
>>>>
>>>>>Pls add an 'echo "--"' to your script so that our mailers can detect your
>>>>>sig.
>>>>
>>>><pedant>
>>>>Actually, that should be "-- ".
>>>>
>>>>The .sig delimiter is two dashes, a space and a newline.
>>>></pedant>
>>>>
>>>>Dave...
>>>>
>>>
>>>then I need to insert a carriage return below the "-- "
>>>what would that be?
>>
>>Well in Unix systems the newline character is a line feed not a carriage
>>return. But echo (without a -n switch) will add it to the output. So
>>just use 'echo "-- "' after stripping the single quotes.
>>--
>>Graham Campbell <gc1111 at optonline.net>
>>
>
> I'm learning the difference now after reading up on it, but I can't find
> how to just insert a blank new line..i.e. look at my sig below, it's all
> on one line:
>
> -- =Guy 19:24:11 up 21:48, 2 users, load average: 0.74, 0.68, 0.56
>
> but I would like it to look like
>
> --
> =Guy
> 19:24:11 up 21:48, 2 users, load average: 0.74, 0.68, 0.56
>
> I have tried \r and \n but perhaps I am missing some kind of qualifier
> like $ before it or something. I apologize for my lack of scripting in
> unix knowledge but promise to keep researching and become better.
>
> Thanks.
Try:
echo "-- " >.signature
echo "=Guy" >>.signature
echo `uptime` >>.signature
>
--
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer rstevens at vitalstream.com -
- VitalStream, Inc. http://www.vitalstream.com -
- -
- Brain: The organ with which we think that we think. -
----------------------------------------------------------------------
More information about the users
mailing list