system command

From: Andrea Spitaleri (spiritelllo_at_interfree.it)
Date: 03/31/04


Date: 31 Mar 2004 00:16:54 -0800

Hi
if a dir contains file like 1.pov 2.pov 3.pov 4.pov 5.pov 6.pov ..
n.pov
I use to do:
foreach in $index (1 .. n){
system ("povray $index.pov")}
but if I have got something like a.pov gf.pov fr.pov .....zz.pov
(randoms name with the same extension), how may I do for using system?

and



Relevant Pages

  • local and my in subroutines
    ... The second sub in this script works using: ... # Create extenions for log files as the older ones have a bz2 extension. ... foreach my $end ...
    (perl.beginners)
  • Re: Reading files with odd name but same extension
    ... you could set up a foreach loop: ... extension, ... I was wondering if MATLAB has a similar function, ...
    (comp.soft-sys.matlab)
  • Reading files with odd name but same extension
    ... you could set up a foreach loop: ... extension, ... I was wondering if MATLAB has a similar function, ...
    (comp.soft-sys.matlab)
  • Re: system command
    ... Andrea Spitaleri wrote: ... > (randoms name with the same extension), how may I do for using system? ... There are plenty of ways to do that. ...
    (comp.lang.perl.misc)
  • Re: any options for foreach?
    ... > this finds all files with an extension of $1 then cuts the list so only the ... > foreach sees this as two tokens, ie. separate $var items ... > How can i make foreach use only line breaks and not white spaces as it's delimiter? ... > echoing the command shows what i hope to acheive with this script, ...
    (comp.unix.shell)