Date: Tue, 25 Apr 2000 11:06:42 -0700 From: Alfred Perlstein <bright@wintelcom.net> To: Doug Barton <Doug@gorean.org> Cc: Greg Pavelcak <gpav@som.umass.edu>, freebsd-questions@FreeBSD.ORG Subject: Re: Making sh script pause for input Message-ID: <20000425110642.D9754@fw.wintelcom.net> In-Reply-To: <3905CE1F.CAD4A911@gorean.org>; from Doug@gorean.org on Tue, Apr 25, 2000 at 09:55:59AM -0700 References: <Pine.OSF.4.10.10004250959270.13917-100000@yolen.oit.umass.edu> <3905CE1F.CAD4A911@gorean.org>
next in thread | previous in thread | raw e-mail | index | archive | help
* Doug Barton <Doug@gorean.org> [000425 11:01] wrote: > Greg Pavelcak wrote: > > > > This is driving me nuts. I want a script that prompts with a > > student's name and then waits for input regarding that student > > then moves on. I've tried using xargs and a script like this: > > The bad news, you can't do that with sh because once you tell it to > take its input from a file that's where it's going to take all of its > input from. The good news, this is a really easy perl script, and this > kind of processing is one of the things perl is really good for. Actually... :) http://www.complete.org/mailinglists/archives/aclug-l-199811/msg00018.html explains some really nifty things you can do with sh and filehandles. -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000425110642.D9754>