CODE: [Copy to clipboard]@echo off for /f "tokens=1 delims=(" %%a in (a.txt) do ( echo.%%a>>b.txt ) move /y b.txt a.txt