Sorry, should also mention that you need ogginfo installed and somewhere in your path for the script to work.
Cheers, Trevor Trevor Lauder said: > Chris Wallace said: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Hey all, >> >> I've been looking for a couple of little utils (GUI-based or not) and >> I'm >> hoping someone on the list may have stumbled across something like this. >> >> 1) a simple util to list all duplicate files in a given dir, based on >> filename/size/etc. >> >> 2) a util that will let me sort MP3/OGG files by bitrate, so I can then >> delete >> any of my old 96KHz files (spoken word, etc.) to free up some space ;-) >> > > You mean 96Kbps right? I've never come across a program that specifically > does that however I wrote a quick bash script that might do what you need. > It only checks OGG files in your current working directory, sorry I don't > use mp3 and don't have experience with it's tools. Just copy & paste this > into a file: > > > > #!/bin/bash > > tmplist=/tmp/oggbitratelist > > for file in `ls *.ogg` > do > > bitrate="`ogginfo $file | grep "Average bitrate" | cut -f 3 -d ' > '`" > echo "$bitrate Filename: $file" >> $tmplist > > done > > cat $tmplist | sort -n -r > > rm -f $tmplist > > > > > Save the file, make it executable, cd into the directory where the ogg > files are you want to sort by average bitrate and run that script. It > will spit out a list of files with their bitrate, the biggest bitrates at > the top of the list. > > >> Thanks in advance for the help. >> >> Regards, >> >> Chris >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.2.1 (GNU/Linux) >> >> iD8DBQE+57MjAvR8j4tXQKERAhROAJ9Cb5vNxKJdQe8hRco2c707N9k2EQCfTTUS >> OWQD7EUcwmEIB4LXsuI3OwY=oZfB >> -----END PGP SIGNATURE----- >> >> >> > > >
