On Tue, 4 Jun 2002 erik(_at_)dd(_dot_)nec(_dot_)com(_dot_)au wrote:
On Fri, May 31, 2002 at 04:21:05PM +0300, Udi Mottelo wrote:
On Thu, 30 May 2002, alois blasbichler wrote:
[...]
How can i eliminate this ^M
i tried with gawk, but it does not work
sed 's/^M$//' #the "^M" is: Ctrl+V Ctrl+M
or:
tr -d '\015'
Bye,
Udi
It is actually not difficult in awk either:
gawk '{sub(/\r$/,"");print}'
works for me. (You can use ^M, as above, instead
of \r if that appeals.)
But ofcource! Also:
awk -F"^M" '{print $1}'
or:
cut -d"^M" -f1
or:
strings -1
or:
echo .. NO echo dosen't help
Bye,
Udi
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail