My problem seems to be very simple to solve but I don't know how to do this ;-(
I'm trying to make a query spool (by osql command line) to a txt file and white spaces are also spooled and I don't know how to avoid it.

osql -E -u -h-1 -s "," -i test.sql -o test.txt

test.sql:
GO
SET NOCOUNT ON
select /.../
GO

test.txt:
1, 3, 2129, 0
2, 9, 2345, 9
/.../

and I'd like to have the output file like that - without leading spaces:
1,3,2129,0
2,9,2345,9
/.../

Thanks in advance for your help.