Sorry,
This is correct, but
if I do:
print "#" > "tmptmp.txt" ;
after
print $1 $2 > "tmptmp.txt" ;
then I get ^M
in my file
I do not have the ^M if I only make print $1 $2 > "tmptmp.txt" ;
and never make a print "#"
Can I avoid these ^M
?
Thank.
===========================================================================
Patrick DUPRÉ | | email: pdupre(a)gmx.com
Laboratoire de Physico-Chimie de l'Atmosphère | |
Université du Littoral-Côte d'Opale | |
Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44
189A, avenue Maurice Schumann | | 59140 Dunkerque, France
===========================================================================
> Sent: Wednesday, May 16, 2018 at 10:58 PM
> From: "Samuel Sieb" <samuel(a)sieb.net>
> To: users(a)lists.fedoraproject.org
> Subject: Re: gawk
>
> On 05/16/2018 01:53 PM, Patrick Dupre wrote:
> > How can I print a "#" with gawk?
>
> Some more context would help, but
> gawk -e '{print "#" }'
> works.
> _______________________________________________
> users mailing list -- users(a)lists.fedoraproject.org
> To unsubscribe send an email to users-leave(a)lists.fedoraproject.org
>