CODE: [Copy to clipboard]for /f "delims== tokens=1,2" %%a in (a.txt) do ( if %%b lss 50 echo %%a %%b>>b.txt )