[MITgcm-devel] awk on SunOS

Martin Losch mlosch at awi-bremerhaven.de
Wed Jan 5 11:43:31 EST 2005


Hi again,
I take everything back. Although this fix gets rid off error messages 
the Makefile is still not usable (no dependencies from make depend). 
I'll have to do more debugging tomorrow.

Martin

On Jan 5, 2005, at 5:33 PM, Martin Losch wrote:

> Hi Ed,
> I have tracked down the problem with Sun's awk. Sun's /usr/bin/awk 
> thinks that the following line has a syntax error:
>                 extn=`echo $sf | $AWK -F '.' '{print $NF}'`
> In fact, if you replace it by:
>                 extn=`echo $sf | $AWK -F'.' '{print $NF}'`
> everything is fine (no space between -F and '.', the '' are not 
> necessary for Sun's awk, either). Do you think that the second line is 
> general enough for all other awks? If so, I would suggest changing 
> that so that we can go back to a generic awk in sunos_sun4u_* files.
>
> Martin
>
>
>
> _______________________________________________
> MITgcm-devel mailing list
> MITgcm-devel at mitgcm.org
> http://dev.mitgcm.org/mailman/listinfo/mitgcm-devel




More information about the MITgcm-devel mailing list