strange behaviour with echo
From: Schviden (schviden_at_hotmail.com)
Date: 01/15/04
- Next message: Icarus Sparry: "Re: Kill processes by keyword"
- Previous message: William Park: "Re: Kill processes by keyword"
- Next in thread: Icarus Sparry: "Re: strange behaviour with echo"
- Reply: Icarus Sparry: "Re: strange behaviour with echo"
- Reply: Anthony Borla: "Re: strange behaviour with echo"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Icarus Sparry: "Re: Kill processes by keyword"
- Previous message: William Park: "Re: Kill processes by keyword"
- Next in thread: Icarus Sparry: "Re: strange behaviour with echo"
- Reply: Icarus Sparry: "Re: strange behaviour with echo"
- Reply: Anthony Borla: "Re: strange behaviour with echo"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|