From owner-freebsd-questions Thu Aug 3 10: 3:55 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail2.wmptl.com (mail2.wmptl.com [216.221.73.131]) by hub.freebsd.org (Postfix) with ESMTP id 23B5137B632 for ; Thu, 3 Aug 2000 10:03:46 -0700 (PDT) (envelope-from webmaster@wmptl.com) Received: from wmptl.com ([10.0.0.168]) by mail2.wmptl.com (8.9.3/8.9.3) with ESMTP id NAA07855; Thu, 3 Aug 2000 13:01:15 -0400 (EDT) (envelope-from webmaster@wmptl.com) Message-ID: <3989A512.3FCA2E7@wmptl.com> Date: Thu, 03 Aug 2000 13:00:02 -0400 From: Nathan Vidican X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: J A Shamsi Cc: questions@freebsd.org Subject: Re: scripts References: <20000803155918.1816.qmail@web4105.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG J A Shamsi wrote: > > HI > I am new to shell scripting, > I would like to create a script in bash shell. > that would do the following > > 1) find out the latest file ( text file)in a directory > ( there are bunch of files in a dir) > > 2)open that file (text file) and parse the > values seperated by comma and store them in variables. > > just wondering is there any howto or documenation > available on the web, or if anyone has any idea... > > thanks > > jas > > __________________________________________________ > Do You Yahoo!? > Kick off your party with Yahoo! Invites. > http://invites.yahoo.com/ > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message Personally, I'd use PERL for something like that. I don't know if it would be possible to do it solely with a BASH script? -- Nathan Vidican webmaster@wmptl.com Windsor Match Plate & Tool Ltd. http://www.wmptl.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message