CODE: [Copy to clipboard]@echo off for %%a in (test*.txt) do ( sed -n "/machine parameter/,$p" %%a|more>>new.txt )