Re: [Evolution] Signature wrapping?



On Tue, 2003-01-07 at 23:06, Jakob Breivik Grimstveit wrote:
I've got a script like this which is set as my default signature:

-=-=-=-=-
#!/bin/sh
cat ~/.sig
echo "
\n\n
"
/usr/games/fortune
-=-=-=-=-

As you can see, the result is less than fortunate. I want my line breaks
to be conserved. How do I do this?

Tnx in advance.

Stick html '<br>' tags at the end of each line.
If you're invoking other commands that can output multiple lines, pipe
them through sed.

So your above script will work if you change it to:

#!/bin/sh
cat ~/.sig | sed -e "s/$/<br>/g"
echo "<br><br><br>"
/usr/games/fortune | sed -e "s/$/<br>/g"


Cheers
David





Jakob Breivik Grimstveit System Integrator, Bergen IT Department, Star
Shipping AS jakob grimstveit starshipping com, +47 55239600/+47 48298152
\n\n Money is the root of all evil, and man needs roots.
--
Cheers,
David
--

Today's Affirmation (selected automatically just for you):

Energy and vitality are my birthright.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]