I need to remove the first (or 2) blank lines in around 2000 txt-files.
I've found and tried this:
if exist *.new del *.new
for /f "tokens=*" %%A in ('dir /b *.txt') do (
for /f "tokens=*" %%L in (!fileNAME!) do (
echo %%L >> !NAME!.new
But it removes ALL empty lines in the txt-files. It's songs, and there is 1-2 empty lines first, then a verse, an empty line, verse 2 and so on - and I need the empty lines between verses, but none at the file-top. Is it possible to delete only the first line ? (And maybe check if it's blank before - gives the possibility to run the files again to remove the blank lines in the files with 2 empty lines).
Thanks, Soren from Denmark.