There should be 11 spaces right before the symbol =
Perhaps you should of stated this originally.
For some reason those 11 spaces are disappearing
Are you sure the problem is in your shell script - I ran my bit of code above (with 11 spaces) and it shows them fine. Could you try producing a very small shell script just to test these lines only? Is something else processing the output of this script and removing the 11 spaces?
echo "num rows = $i"
If that doesn't work then just avoid using spaces ie
echo command works fine. But when you try to send a string with leading or trailing spaces then they are disappearing. I cannot use any other charecter other than space as iam using this code snippet to grep a certain char set which has space.