Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jul 2002 10:19:06 -0700
From:      "James" <effdefender@earthlink.net>
To:        "David Smithson" <david@customfilmeffects.com>, "FreeBSD-Questions" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: How do I repeat a command N times?
Message-ID:  <001001c2276c$bacddcc0$0301a8c0@sys.gtei.net>
References:  <Pine.SGI.3.96.1020709115845.295966F-100000@y.dev.wamnet.com> <006801c2276b$f703f1d0$0801a8c0@customfilmeffects.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I'm still new, but:
It's probably your shell.
The C-Shell (csh) isn't good for programming scripts.
Try changing to the Bourne shell (sh) and running it again.
Switch to the Bourne shell simply by typing "sh"

I was messing with some basic script programs yesterday (though I haven't
learned Perl yet), and it would not work (I had similar errors) unless I
switched back to the Bourne shell.

I think you might be able to program the C-Shell with C like statements, but
I'm still learning.

Hope this helps!
-James Turnbull
----- Original Message -----
From: "David Smithson" <david@customfilmeffects.com>
To: "FreeBSD-Questions" <freebsd-questions@FreeBSD.ORG>
Sent: Tuesday, July 09, 2002 10:13 AM
Subject: Re: How do I repeat a command N times?


> Wow!  So many options.
>
> Perl returns: "Badly placed ( "
>
> My shell is csh
>
> CSH returns "let: arith: syntax error: 'x=+1'" , yet continues and works.
> What's with the error?
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001001c2276c$bacddcc0$0301a8c0>