Re: Help with a Bash script

2010-04-09 Thread Michael Thompson
Just did, sort of still stuck in windows land, with command per line :) On 9 April 2010 16:18, Bruce Korb wrote: >> Had you considered avoiding the intermediate file altogether and going: >> >>  sed ... | other changes ... | sh > > eval "$(sed ... | whatever)" > -- > users mailing list > users@li

Re: Help with a Bash script

2010-04-09 Thread Bruce Korb
> Had you considered avoiding the intermediate file altogether and going: > >  sed ... | other changes ... | sh eval "$(sed ... | whatever)" -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Gu

Re: Help with a Bash script

2010-04-08 Thread Cameron Simpson
On 08Apr2010 16:43, Michael Thompson wrote: | -BEGIN PGP SIGNED MESSAGE- | Hash: SHA1 | | On 08/04/10 16:29, Adalbert Prokop wrote: | > Am 08.04.2010 17:06, schrieb Michael Thompson: | > | > Hi! | | > | > Well, if your list of commands already is a script, then including it | > would

Re: Help with a Bash script

2010-04-08 Thread Kevin Martin
>> If you start the executor with your file as the first parameter, it will >> execute the lines one by one. >> >> # ./executor script >> >> > Many thanks for your help there, much appreciated. > > - -- > Michael > http://maverickapollo.wordpress.com > -BEGIN PGP SIGNATURE- > Versio

Re: Help with a Bash script

2010-04-08 Thread Michael Thompson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/04/10 16:29, Adalbert Prokop wrote: > Am 08.04.2010 17:06, schrieb Michael Thompson: > > Hi! > > Well, if your list of commands already is a script, then including it > would be the most convenient method. > > Let's say your list is called "

Re: Help with a Bash script

2010-04-08 Thread Adalbert Prokop
Am 08.04.2010 17:06, schrieb Michael Thompson: Hi! > I'm quite new to Bash scripting, and just need a little pointer on how > to go through a file, and execute commands there in until the end of the > file is reached. Well, if your list of commands already is a script, then including it would b

Re: Help with a Bash script

2010-04-08 Thread Michael Thompson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/04/10 16:06, Michael Thompson wrote: > I'm quite new to Bash scripting, and just need a little pointer on how > to go through a file, and execute commands there in until the end of the > file is reached. > > The idea is this, a list of iptables

Help with a Bash script

2010-04-08 Thread Michael Thompson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm quite new to Bash scripting, and just need a little pointer on how to go through a file, and execute commands there in until the end of the file is reached. The idea is this, a list of iptables rules is downloaded, they are run through a set of co