Re: [SLUG] Scripting question

From: Andrew Wyatt (awyatt@fewt.com)
Date: Thu Sep 05 2002 - 19:05:57 EDT


> It also requires *having* python installed. The same could be said about
> perl, really:
>
> #!/usr/bin/perl
> for($i=0;$i++;$i<10) { system("command") }
> system("othercommand");
>
> You could even do that in a one-liner without a script:
>
> # perl -e 'for ($i=0;$i++;$i<10) { system("command") }'
>

perl -e 'for (0..5) { system("command"); } system("nextcommand");'

-Andrew (Still need that SAGE location :-P)



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:59:16 EDT