Date: Thu, 18 Jan 1996 16:15:27 +0100 (MET) From: Christoph Kukulies <kuku@gilberto.physik.rwth-aachen.de> To: tony@hornet.netac.co.za (Tony Harverson) Cc: freebsd-questions@freebsd.org Subject: Re: Csh Scripting ? Message-ID: <199601181515.QAA00330@gilberto.physik.rwth-aachen.de> In-Reply-To: <199601181351.PAA08194@hornet.netac.co.za>
next in thread | previous in thread | raw e-mail | index | archive | help
>
> Heya all,
>
> Does anyone have an example of a csh case statement I could have a
> look at ? I'm not having any luck with trying to get it right outa
> the man page.
Frrrt, Frrt, Csh Field Guide (Anderson/Anderson): (pp. 163):
switch (string)
case pattern1:
command(s)
breaksw
case pattern2
command(s)
breaksw
. . .
default:
command(s)
breaksw
endsw
Don't forget to start with
#!/bin/csh
and.. btw.. use bourne shell next time.:-)
>
> Thanks
>
> Tony
>
>
--Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601181515.QAA00330>
