On Wed, Oct 12, 2005 at 06:16:05PM +0100, Burke, S (Stephen) wrote:
> ... and people say perl is bad! My guess is that it's stripping trailing
> digits but not checking that there are any?
I think this is what you want:
vo_user_prefix=`awk -F: '$6!="sgm" && $5==tolower(virtorg){ if (sub(/[0-9]+$/, "", $2)) print $2}' virtorg=$VO ${USERS_CONF} | head -1`
|