strange behaviour with echo

From: Schviden (schviden_at_hotmail.com)
Date: 01/15/04


Date: 14 Jan 2004 22:05:05 -0800

Hi Group,

I have some code (see below) that is showing some strange behaviour.

for host in $HOSTS
do
   fp=`ssh-keygen2 -F
/etc/ssh2/knownhosts/${host}.cs.mu.OZ.AU.ssh-dss.pub | head -1`
   echo "
   <tr>
   <td>$host</td>" >> $OUTPUT
   if [ -z "$fp" ] ; then
      echo " <td>Fingerprint currently unavailable</td></tr>" >>
$OUTPUT
   else
      echo " <td><kbd>$fp</kbd></td></tr>" >> $OUTPUT
   fi
done

And the output is as follows:

   <tr>
   <td>host</td>
   <td><kbd>fingerprint^M</kbd></td></tr>

Notice the annoying ^M. Does anyone know how I can generate the
fingerprint *without* that stupid ^M?

TIA

--
Schviden


Relevant Pages

  • RE: Link Bars Not Showing Up
    ... host and decided that we would take advantage of the front page extensions. ... We did a few test pages, which contained the link bars and a few other simple ... The link bars are not showing at all. ...
    (microsoft.public.frontpage.client)
  • Re: Saying Goodbye to the Income Tax
    ... I doubt that anyone is overly surprised tat your Worshiper Master ... is a talk show host. ... you insist on showing your servitude and lack of ...
    (misc.taxes)
  • Global Address in RPC over HTTP
    ... I am trying to make changes so that my Exchange server will host a new ... When I send email from OWA, my reply address is showing the correct ...
    (microsoft.public.exchange.setup)
  • Link Bars Not Showing Up
    ... I published a web site to a host that does allow front page extensions. ... The link bars are not showing at all. ...
    (microsoft.public.frontpage.client)
  • AOM - Multiplayer help
    ... and click advanced setup and host my own game and try to ... I created my Map (put in the units/buildings ... and saved it) and its not showing up in the selecting ...
    (microsoft.public.games)