On Fri, Mar 13, 2009 at 11:51:48PM +0100, Volker A. Brandt wrote:
> > What is wrong with this?
> >
> > SRMAC=`cd -P $UTDEVROOT; pwd | sed 's/.*\(............\)/\1/'`
>
> This will only work in ksh. Use this:
>
> SRMAC=`perl -e 'print((split/\//,readlink $ENV{DTDEVROOT}."/unit")[4],"\n");'`
I was after something lightweight, not perl :)
It works OK in /bin/sh anyway, good enough for me.
Ceri
--
That must be wonderful! I don't understand it at all.
-- Moliere
pgpMQ3tEvPhyz.pgp
Description: PGP signature
_______________________________________________ SunRay-Users mailing list [email protected] http://www.filibeto.org/mailman/listinfo/sunray-users
