The code below shall give me all lines with comma, I added , after !line:~,8!
Code: Select all
for /f "delims=" %%i in (debug_list.txt) do (
set line=%%i
echo !line:~,8!,>>debug_extra.txt
)
- 50001101,
50007201,
50013501,
50014301,
50013601,
- 500011011000.S3S
500072010400.S3S
500135010100.S3S
500143010002.S3S
500136010100.S3S
- 50001101,
50007201,
50013501,
50014301,
50013601
How not to add the comma for the last line...
Thanks