dnux67
09-15-2005, 03:21 PM
Hi could someone tell me why my scalar that inside all the if condition doesnt get affected? when they are call in the sed substitution they only get affected with the STDIN but with my default value if the STDIN was empty.
Thank you all for your help
Dee
here one exemple of my if condition
echo "please enter the port number"
read C_portNum
if [ -z C_portNum ]; then
C_portNum="21"
fi
cat proftpd.newConf | sed -e "s/PORT_NUMBER/$C_portNum/" > test.newConf
Thank you all for your help
Dee
here one exemple of my if condition
echo "please enter the port number"
read C_portNum
if [ -z C_portNum ]; then
C_portNum="21"
fi
cat proftpd.newConf | sed -e "s/PORT_NUMBER/$C_portNum/" > test.newConf