Re: can you help about this script

2007-11-22 Thread ann kok
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:,

Re: can you help about this script

2007-11-22 Thread Giorgos Keramidas
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

Re: can you help about this script

2007-11-22 Thread Giorgos Keramidas
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

can you help about this script

2007-11-21 Thread ann kok
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