Hi,
I have a var sdt='23032011000000'
now if i want only 23 out of above? hw to cut?
also..after cuttint-will it be stored in another var as a varchar or as a number?
Hi,
I have a var sdt='23032011000000'
now if i want only 23 out of above? hw to cut?
also..after cuttint-will it be stored in another var as a varchar or as a number?
another_var=`echo $sdt | cut -c 1-2`
Hi Thanks,
But after cutting will 23 be stored as a char or number in a var another_var..
because i am passing that var to a plsql procedure and there i am assigning it to a number..?
sdt='23032011000000'; CutFld=$(echo $sdt | cut -c 1-2);echo $CutFld
it will be taken as number in your plsql procedure