Shell question.

From: Date: Wed, 10 Sep 2003 17:07:29 +0000
Subject: Shell question.
Groups: php.general 
Request: Send a blank email to php-general+get-162201@lists.php.net to get a copy of this message
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.

« previous php.general (#162201) next »