|Re: Pre - When creating a post, above the dialog box you will see selections for Bold, Italics, Strike-Through, Hyperlink and Pre. Using pre allows code to be posted retaining formatting, indenting etc.|
I still have doubts about what you are trying to achieve, your first post indicates a CSV file but your last post (#2) indicates a space delimited file.
Try the following script and get back if it's not what you want. It should create a CSV output file.
for /f "tokens=*" %%1 in ('dir/b sg*') do (
for /f %%a in ('find /c /v "" ^< "%%1"') do (
for /l %%b in (1,1,%%a) do (