feeding a script from standard input

Jeffrey Holle <[email protected]> Mon, 26 Jan 2004 22:04:16 -0800
Newsgroups org.kernel.vger.linux-console
Message-ID <[email protected]>
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?