Shell question.

From: Date: Wed, 10 Sep 2003 19:01:19 +0000
Subject: Shell question.
Groups: php.general 
Request: Send a blank email to php-general+get-162218@lists.php.net to get a copy of this message
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:samir_sethi@ml.com] Sent: Wednesday, September 10, 2003 1:07 PM To: 'php-general@lists.php.net' 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

« previous php.general (#162218) next »