[sclug] SCO Unix

James Fidell james at cloud9.co.uk
Sat Oct 25 09:05:30 UTC 2003


Quoting Tony Sumner (whittycat at ntlworld.com):
> Does anyone know about SCO Unix? I have been asked to help someone
> who runs a veterinary practice in Ledbury and they have a server
> that runs SCO Unix (they disregarded my advice to go for Linux) and 
> they asked me to write a script that could rename a whole batch of
> files. So I wrote one that begins
>   #!/bin/sh
>   for file  in $@; do
> 
> and when they run this on their system it reports a syntax error
> at 'do'. Does that mean they do not have the Bourne shell? Or does
> SCO not recognize #!/bin/sh? Where do I go from here? I don't have
> a SCO manual of course; I'd have to go to Ledbury for that.

I've not used SCO in years, but you might try putting the "do" on a
separate line (and removing the semi-colon), or replacing $@ with $*.

James



More information about the Sclug mailing list