I am trying to calulate the values with this script
/* Script will estimate the values by 15 % */
echo " Enter the directory name "
read value1
value3=`(du -k $value1 | tail -1 | awk '{print $1}')`
echo " Souce directory file size is $value3 "
val=$value3 + `($value3 * 0.15)`
echo " Excepted value is $val"
I am getting this output
----------------------
bash-2.03$ ./file2
Enter the directory name
/home/sp51182
Souce directory file size is 17
./file2: 17: command not found
./file2: +: command not found
Excepted value is
Please help me in solving this problem.
Last edited by padarthy; 09-14-2007 at 12:10 AM..
Reason: Spelling mistake