Another shell question - 

$system is set to eq-cca-u1.etsd.ml.com , 
Running the commands below should give sysnew as eq-cca-u1 , stripping out the 
etsd.ml.com.

$sysnew = `echo $system | awk -F. '{ print $1 }'` ;
echo "sysnew = $sysnew " ;

However the echo statement returns sysnew as eq-cca-u1.etsd.ml.com, it should be 
eq-cca-u1 since
The awk removes everything after the . 

What am I doing wrong here ? Any feedback appreciated. Thanks.

Samir.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to