From owner-freebsd-questions@FreeBSD.ORG Thu Nov 22 07:34:18 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8CDBD16A473 for ; Thu, 22 Nov 2007 07:34:18 +0000 (UTC) (envelope-from annkok2001@yahoo.com) Received: from web53309.mail.re2.yahoo.com (web53309.mail.re2.yahoo.com [206.190.49.99]) by mx1.freebsd.org (Postfix) with SMTP id 6267913C45D for ; Thu, 22 Nov 2007 07:34:18 +0000 (UTC) (envelope-from annkok2001@yahoo.com) Received: (qmail 20147 invoked by uid 60001); 21 Nov 2007 20:26:28 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=nNbom49r2UaBgnoc+IfpHgUbI6bRPu83a0DAHtccuYMLrjKXfMLt9bJrhk03JIKH3n1tYfhlUiFFesGHNVDuahrHlk3xpMu9+geYzuMmHbt7iAD3tjzitZjw2ad8zymIOEa8qDGIwiRnf98Jai1KJFGve9GYUqW4opjODXRuLeY=; X-YMail-OSG: IH1NhNQVM1n7d4TAjpPd60dok0TLNE7T8PBhzzOObIwYbnDboZJVty8u0BAlYK9MCg-- Received: from [66.49.254.13] by web53309.mail.re2.yahoo.com via HTTP; Wed, 21 Nov 2007 12:26:28 PST Date: Wed, 21 Nov 2007 12:26:28 -0800 (PST) From: ann kok To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <874143.14419.qm@web53309.mail.re2.yahoo.com> Subject: can you help about this script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Nov 2007 07:34:18 -0000 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