Register
It is currently Wed Jul 23, 2014 3:40 pm

List audiofiles sorted by bitrate?


All times are UTC - 6 hours


Post new topic Reply to topic  [ 2 posts ] 
Author Message
 PostPosted: Mon Jul 22, 2013 3:06 pm   

Joined: Mon Jul 22, 2013 2:54 pm
Posts: 1
I'm trying to come up with a one-liner to go through my music library and display all my audio files sorted by bitrate.

This is what I have so far:
Code:
find . -type f -name '*.mp3' -exec file {} \;

I was going to try to pipe the output into sort, however the output of the above command isn't consistent in which column the bitrate is listed - it seems to depend on the audio file, but it appears to always be the third item from the right. Alternatively, if there was some way to direct the computer to sort by the number preceding the string "kbps"...

Can anyone point me in the right direction?


Top
 Profile  
 PostPosted: Tue Jul 23, 2013 7:29 am   

Joined: Mon Mar 02, 2009 3:03 am
Posts: 532
hi,

I don't have got mp3s.
could you post the output of the find command?


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP