Discussion:
printing dot using awk
Ted Yu
2014-03-31 23:38:01 UTC
Permalink
Hi,
How do I print a dot '.' using awk ? See the question mark in following expression:

awk -F \/ '{ print $1 ? }'


I tried '\x2E' but got error.

Cheers
s***@public.gmane.org
2014-04-01 00:15:16 UTC
Permalink
awk '{printf("%s .\n", $1)}'
Will McLean
2014-04-01 00:18:38 UTC
Permalink
awk -F \/ '{ print $1 "." }'



________________________________
From: Ted Yu <ted_yu-/***@public.gmane.org>
To: "seajug-***@public.gmane.org" <seajug-***@public.gmane.org>
Sent: Monday, March 31, 2014 4:38 PM
Subject: [seajug] printing dot using awk



 
Hi,
How do I print a dot '.' using awk ? See the question mark in following expression:

awk -F \/ '{ print $1 ? }'


I tried '\x2E' but got error.

Cheers
 
Ted Yu
2014-04-01 01:34:17 UTC
Permalink
Thanks for the quick reply.

On Monday, March 31, 2014 5:34 PM, Will McLean <wimcle-/***@public.gmane.org> wrote:

 
awk -F \/ '{ print $1 "." }'


________________________________
From: Ted Yu <ted_yu-/***@public.gmane.org>
To: "seajug-***@public.gmane.org" <seajug-***@public.gmane.org>
Sent: Monday, March 31, 2014 4:38 PM
Subject: [seajug] printing dot using awk



 
Hi,
How do I print a dot '.' using awk ? See the question mark in following expression:

awk -F \/ '{ print $1 ? }'


I tried '\x2E' but got error.

Cheers
 

Loading...