mplayer: Play All Mp3 Files In Reverse Order
mplayer lacks an option for selecting files in a reverse order. So here is a quick way to playback all mp3 files in reverse order:
$ ls -1 -r *.mp3 > mp3.rev
$ mplayer -playlist mp3.rev
Where,
- -r reverse order while sorting
- -1 list one file per line
- -playlist file : Play files according to a playlist file
Let's hear your shell hack in the comments.
Want to stay up to date with the latest Linux tips, news and announcements? Subscribe to our free e-mail newsletter or full RSS feed to get all updates.
You can Email this page to a friend.
You may also be interested in...
- nixCraft FAQ Roundup
- How to: Linux Play DivX .avi video codec file
- Making Bootable Movies with eMoviX
- Quick tip: Play mp3 in loop using mplayer movie player
- Lighttpd Control a Directory Listing With mod_dirlisting
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: hack, mp3 file playlist, mp3 files, mplayer, mplayer_command, play mp3 file, playback, shell, sort file in reverse order ~ Last updated on: May 6, 2008



Recent Comments
Today ~ 2 Comments
Today ~ 4 Comments
Today ~ 8 Comments
Today ~ 3 Comments
Today ~ 2 Comments