Hi guys,
I've got simple question, but I couldn't work it out atm.
I try to parse the value from source file here's the contain of source file
And here's my script:
if I use the first "file" parameter is not working but
if I use the second "file" parameter is working
both actually has the same value
Any idea what should I do if I want the use the first parameter ?
I've got simple question, but I couldn't work it out atm.
I try to parse the value from source file here's the contain of source file
Code:
$ALGO_TOP/static/scripts/viewTradeLSno.ksh
And here's my script:
Code:
#file=`cat source`
#file=$ALGO_TOP/static/scripts/viewTradeLSno.ksh
echo $file
if [[ -f $file ]]
then
echo "file is found"
else
echo "file is not found"
fi
if I use the first "file" parameter is not working but
if I use the second "file" parameter is working
both actually has the same value
Any idea what should I do if I want the use the first parameter ?