Re: feeding a script from standard input
Jeffrey Holle <[email protected]> Wed, 28 Jan 2004 12:34:17 -0800
| Newsgroups | gmane.linux.console |
|---|---|
| Message-ID | <[email protected]> |
Thanks for this, works without the quotes! Jan-Benedict Glaw wrote: > On Mon, 2004-01-26 22:04:16 -0800, Jeffrey Holle <[email protected]> > wrote in message <[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? > > > Why not make it like this: > > #!/bin/sh > pyste --out=. --multiple --module=mymodule "$*" > > and then call it like > $ ./genpystr *.pyste > > MfG, JBG > - To unsubscribe from this list: send the line "unsubscribe linux-console" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html