From owner-freebsd-questions Thu Aug 3 9:16:48 2000 Delivered-To: freebsd-questions@freebsd.org Received: from snoopy.brwn.org (intgw1.brwn.org [196.28.127.66]) by hub.freebsd.org (Postfix) with ESMTP id 02D6137B51D for ; Thu, 3 Aug 2000 09:16:41 -0700 (PDT) (envelope-from willem@snoopy.brwn.org) Received: by snoopy.brwn.org (Postfix, from userid 1001) id B19AC1D9B; Thu, 3 Aug 2000 18:16:37 +0200 (SAST) Date: Thu, 3 Aug 2000 18:16:37 +0200 From: Willem Brown To: J A Shamsi Cc: questions@freebsd.org Subject: Re: scripts Message-ID: <20000803181637.E55450@snoopy.brwn.org> References: <20000803155918.1816.qmail@web4105.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20000803155918.1816.qmail@web4105.mail.yahoo.com>; from jashamsi@yahoo.com on Thu, Aug 03, 2000 at 08:59:18AM -0700 X-Public-Key: http://willem.brwn.org/pubkey.txt X-Chat-Server: http://chat.brwn.org/ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I saw this on freshmeat.net. It is part of the Linux documentation project. http://www.linuxdoc.org/HOWTO/Bash-Prog-Intro-HOWTO.html I'm not sure how much of a help it will be, but since you are new to shell script programming it should get you started. You should also look at the man pages. man find man bash man grep man sed man sort man awk man perl man cut You'll probably end up using many of these strung together to create your shell script. Best Regards Willem Brown On Thu, Aug 03, 2000 at 08:59:18AM -0700, 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 > -- /* =============================================================== */ /* Linux, FreeBSD, NetBSD, OpenBSD. The choice is yours. */ /* =============================================================== */ Never argue with an idiot: People watching may not be able to tell the difference. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message