Hi Giorgos
Thank you
But my output is from your suggstion
printf Created: %s\n, system(date +%Y%m%d);
20071122
Created: 0
20071122
Updated: 0
how can I have output as
Created: 20071122
Updated: 20071122
In additon,
ls it possible to have loop output also?
I need to have
print File No:,
On 2007-11-22 10:10, ann kok [EMAIL PROTECTED] wrote:
Hi Giorgos
Thank you
But my output is from your suggstion
printf Created: %s\n, system(date +%Y%m%d);
20071122
Created: 0
20071122
Updated: 0
how can I have output as
Created: 20071122
Updated: 20071122
You'll have to use the
On 2007-11-21 12:26, ann kok [EMAIL PROTECTED] wrote:
Hi all
how command date, hostname run in awk program?
awk -F program.awk file.txt
You don't use backticks... These are a feature of the shell, and
running a script through progname.awk is no longer a shell session.
Try system(date) in
Hi all
how command date, hostname run in awk program?
awk -F program.awk file.txt
program.awk
BEGIN { RS = \n ; FS = | }
{
print Name:, $9
print Created: `date`
print from: `hostname`
print
}
Thank you