Getting oracle sqlplus select count value into dos batch file
===

I've got a DOS batch file running an SQLplus select to get a count of rows where a particular column value is 10. This is working fine and I've sucessfully output the value to a file however I'm now having real problems using that value in the batch file. The problem seems to be due to it being a right justified 10 character string. 

so if my value is 0 i get this,

             0

or if my value is 7000 I would get this,

          7000

What I really want is this,

    0

or this

    7000

Im reasonably sure that If I had the data starting in column 1 then I could use the following to read the data,

    for %%a in ("C:\Program Files (x86)\BBWin\ext\status10.LST") do if /I %%a GTR 300 echo %%a >> "C:\Program Files (x86)\BBWin\ext\status10.txt"