Code: Select all
"a:\AmericanDad-S07E15-LessMoneyMoProblems-14669961-0.mpg" 2986316918
"a:\AmericanDad-S07E16-TheKidneyStaysinthePicture-14751494-0.mpg" 2954978570
"a:\Californication-S05E12-HellAintaBadPlacetoBe-14751936-0.mpg" 4342208176
"a:\DoomsdayPreppers-S01E10-DisasterDoesntWait-15205666-0.mpg" 7171749364
"a:\DoomsdayPreppers-S01E10-DisasterDoesntWait-15205666-0.txt" 352
I tried using the sort command (where filez.txt is the file with the contents mentioned above); however, it's definitely not working correctly. Can someone please help?
Code: Select all
for /f "tokens=1,2 delims= " %%a in (filez.txt) do echo %%b >>fileza.txt
sort <fileza.txt >outfile.txt