Anyone had a chance to look at this. Been trying different combinations, doesn't appear
To work. 
Thanks.

-----Original Message-----
From: Sethi, Samir (IDS DM&DS) [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 10, 2003 1:07 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP] Shell question.



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

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

Reply via email to