From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeffrey Holle Subject: Re: feeding a script from standard input Date: Wed, 28 Jan 2004 12:34:17 -0800 Sender: linux-console-owner@vger.kernel.org Message-ID: References: <20040128140536.GW8401@lug-owl.de> Reply-To: jeff.holle@verizon.net Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20040128140536.GW8401@lug-owl.de> List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: linux-console@vger.kernel.org Thanks for this, works without the quotes! Jan-Benedict Glaw wrote: > On Mon, 2004-01-26 22:04:16 -0800, Jeffrey Holle > wrote in message : > >>I have a script, call it genpyste that looks like this: >> >> #!/bin/sh >> pyste --out=. --multiple --module=mymodule Parameter.pyste >> >>The problem with it is that this is just a start of it. >>When I'm done, there will need to be about 30 parameters like >>Parameter.pyste. >> >>I'm wondering if I can do something like this from the command line: >> >> ls *.pyste | ./genpyste >> >>What, if anything, can be done to the genpyste script to work like this? > > > Why not make it like this: > > #!/bin/sh > pyste --out=. --multiple --module=mymodule "$*" > > and then call it like > $ ./genpystr *.pyste > > MfG, JBG >