Re: feeding a script from standard input
Jan-Benedict Glaw <[email protected]> Wed, 28 Jan 2004 15:05:37 +0100
| Newsgroups | gmane.linux.console |
|---|---|
| Message-ID | <[email protected]> |
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 -- Jan-Benedict Glaw [email protected] . +49-172-7608481 "Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg fuer einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFAF8GwHb1edYOZ4bsRAjQ5AKCMK0HQ1H6LAgh4HleWXuA3A2mgtQCfc3ul 5XksQP5yaC+obcMzbmNFlQI= =4qPI -----END PGP SIGNATURE-----