How can I replace a null value within a variable?
I know the var has a value set using
but if I echo $ver > file
the file appears empty.
Ideas?
Mike
"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
I know the var has a value set using
Code:
if [ -z $ver ] ; then
if [ $(ver+EMPTY} = EMPTY] ; then
echo "var empty"
else
echo "var not set"
fi
else
echo "var has value"
fi
but if I echo $ver > file
the file appears empty.
Ideas?
Mike
"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."