Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Nov 2007 12:26:28 -0800 (PST)
From:      ann kok <annkok2001@yahoo.com>
To:        freebsd-questions@freebsd.org
Subject:   can you help about this script
Message-ID:  <874143.14419.qm@web53309.mail.re2.yahoo.com>

next in thread | raw e-mail | index | archive | help
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


      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?874143.14419.qm>