News:

2023-08-10 - ExifTool version 12.65 released

Main Menu

mp3 Directory Sort?

Started by Archive, May 12, 2010, 08:54:06 AM

Previous topic - Next topic

Archive

[Originally posted by donnie on 2007-06-29 14:00:34-07]

Is there a way to use exiftool to physically sort a directory of
mp3 files into track number order?  The files are currently in
filename alpha order (ls -U) and I can run exiftool on individual
files and see the track number.

Archive

[Originally posted by exiftool on 2007-06-30 00:32:11-07]

If you just want a listing of the songs in order of track, you
could do something like this in Unix:

Code:
exiftool -p '$track $filename' | sort -n

- Phil

Archive

[Originally posted by exiftool on 2007-06-30 00:33:58-07]

Oops, forgot to specify a directory:

Code:
exiftool -p '$track $filename' DIR | sort -n

- Phil