Listen and sort your music, with prompt for deleting (minimal alternative version)

for i in *; do mplayer "$i" && rm -i "$i"; done
The glob pattern * expands to all files, no need for the 'ls' command. The quotes around "$i" make sure filenames with spaces in them are handled correctly. mplayer determines if it is a media file and plays it, or gives errors and the loop asks if this file has to be removed.
Sample Output
> for i in *; do mplayer "$i" && rm -i "$i"; done
MPlayer SVN-r35933-snapshot-4.7.2 (C) 2000-2013 MPlayer Team

Playing Eels - A Daisy Through Concrete.mp3.
libavformat version 54.63.104 (internal)
Audio only file format detected.
Clip info:
 Title: A Daisy Through Concrete
 Artist: Eels
 Album: 
 Year: 
 Comment: 
 Track: 1
 Genre: Unknown
Load subtitles in ./
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 44100 Hz, 2 ch, s16le, 160.0 kbit/11.34% (ratio: 20000->176400)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:   7.8 (07.8) of 146.0 (02:26.0)  0.9% 

Exiting... (Quit)
rm: remove regular file ?Eels - A Daisy Through Concrete.mp3?? 

MPlayer SVN-r35933-snapshot-4.7.2 (C) 2000-2013 MPlayer Team

Playing test.txt.
libavformat version 54.63.104 (internal)


Exiting... (End of file)
rm: remove regular empty file ?test.txt?? 

-1
By: warkruid
2013-12-26 17:13:23
rm

1 Alternatives + Submit Alt

What Others Think

These are indeed the fascinating things about music. Not only that, https://tonosdellamadamp3.com/ also provides great ringtones that you can consult and use them for free.
Calantha · 106 weeks and 3 days ago
great , thank you for sharing this . https://sonidosmp3gratis.net/whatsapp where i usually download sounds, ringtones and can i apply that way.
AlfredMills · 89 weeks and 2 days ago
That's right, it's all great music, you can listen to it every day at klingeltöne mp3 with the best sound quality available today.
LutherFigueroa · 88 weeks and 4 days ago
thanks for sharing, the ringtone and sound of telécharger son gratuit mp3 is completely free.
MeredithAllison · 88 weeks and 4 days ago
Download Ringtone Maker From Google Play & Make Ringtone Of Your Favourite Songs or get ringtones free for your phone
celinaa123 · 78 weeks and 5 days ago
update whatsapp latest version at http://fouadmods.app/>fouadmods
CeciliaColeman · 75 weeks and 4 days ago
It sounds like darmowe dzwonki na komórk? do ci?gni?cia and I love it
ErvinPotter123 · 75 weeks and 2 days ago
Or you can use Spotify on https://techgara.com/spotify-premium to arrange songs
fredrickrhodes · 57 weeks and 3 days ago
In tired times you need to download cool ringtone for nokia, visit here sonnerie Nokia X80 Pro with the best quality available today.
Roykim34 · 55 weeks and 1 day ago
I appreciated your work very thanks https://nullsclash.net/brawl-stars-mod-apk/
gochi88 · 54 weeks and 1 day ago
Your article is very good, download ringtone to access now https://polskietones.com/
NoraSwanson · 52 weeks and 4 days ago
Thanks for sharing this article. Recently I download minecraft apk from https://techskeleton.com/minecraft-apk/ this article.
tyler23lunar · 51 weeks and 5 days ago
Just download the minecraft apk on android smartphone.
tyler23lunar · 51 weeks and 5 days ago
your command audio mp3 is good. I follow command app audio instructions. https://gbplusapps.com/yowhatsapp-apk-download/
arnold · 51 weeks and 5 days ago
https://sonneriesvip.com/ This is a website that specializes in providing French phone ringtones, synthesizing the best quality music
sonneriesvip · 48 weeks and 4 days ago
With whatsapp plus rojo descargar, you can change the look and feel of the app, as well as add new emojis and other improvements.
ParrisAllan · 31 weeks and 3 days ago
you can download the latest dzwonek na telefon now it's completely free
AngelNorris · 29 weeks and 2 days ago
i want to change tonos para celular for my mobile where can i search
ChrisGuzman · 29 weeks and 2 days ago
yes i usually listen to spotify premium techupnew do you enjoy music with Spotify Premium
leannebedard · 23 weeks and 1 day ago
Amazing! This blog looks just like my old one! It's on a completely different subject but it has pretty much the same layout and design. Wonderful choice of colors! Pug Puppies for Sale Near Me PUG PUPPY FOR SALE NEAR ME PUG PUPPIES FOR SALE pug puppies for sale in kentucky Pug Puppies for Sale Under $500 Near Me pug puppies for sale in texas pugs puppies for sale teacup pugs for sale pug puppies for sale by owner pug puppies ohio
rahimhh21 · 22 weeks and 4 days ago
It is also one of the minimum deposit betting sites in the nation, allowing you to start playing with as little as 160 euros (with Skrill). However, the UI and design of the World777 com website seem to be areas where they still need work. The site appears to be rather disorganized, which can occasionally affect your live betting experience.
world777 · 15 weeks ago
Collection of completely free mods with attractive features that I love at https://apktodo.com/vi/minecraft
coleman19977 · 14 weeks and 3 days ago
Thank you for sharing such a wonderful and informative article with us. It was very interesting. Although the topic is usually interesting, your interesting writing makes it even more interesting. Thank you again for all you do! Also Fouad WhatsApp APK is a modified version of WhatsApp Messenger YOWhatsapp latste versie download Fouad WhatsApp APK download (Official) Fouad WhatsApp APK (Anti-Ban)
timeing · 13 weeks and 4 days ago
Pug Puppies for Sale Near Me pugs puppies for sale teacup pugs for sale pug puppies for sale by owner pug puppies ohio PUG PUPPY FOR SALE NEAR ME PUG PUPPIES FOR SALE pug puppies for sale in kentucky Pug Puppies for Sale Under $500 Near Me pug puppies for sale in texas pug puppies for sale $200 pugs for sale near me under $500 pugs for sale under $400 near me pugs for sale near me puppies for sale near me under $500 pug puppies for sale under $1,000 near me pug for sale pug puppies for sale under $300 Brindle Pug Pitbull Pug Mix Pugs for sale cheap Cheap pug affordable pug puppies for sale near me black pugs for sale near me White Pugs for sale pug dog for sale free pug puppies pug puppies for sale in my area mn pug breeders pug puppies indiana pugs for sale michigan PUG PUPPY ADOPTION Pug puppies for sale Pug puppies for sale near me Pug puppies near me Pug Puppies for Sale Under $500 Near Me Cute Pug Puppies Black pug puppies Black pug puppies for sale pug puppies for adoption black pug puppies for sale near me chihuahua pug mix puppies how much is a pug puppy teacup pug puppies baby pug puppies baby pug puppies for sale pictures of pug puppies pug puppies for sale in Ohio pug puppies price pug mix puppies teacup pug puppies for sale best food for pug puppy newborn pug puppies pug puppies craigslist pug puppies for sale craigslist adorable pug puppies how much does a pug puppy cost Pitbull pug mix puppies pug pit mix puppy pug puppies for sale $200 pug puppies for sale in NJ Pug puppies for sale in Wisconsin pug puppy cost pug puppy food royal canin pug puppy royal canin pug puppy food fawn pug puppy pug puppies for sale florida pug puppies for sale in Indiana pug puppies for sale in KY pug puppies for sale in NC pug dog puppy AKC Registered Pug Puppies For sale cheap pug puppies for sale near me cheap pug puppies for sale in California cheap pug puppies for sale in nj Black Pug Puppies for sale pugs puppies for sale
Perfecthomepugs · 13 weeks and 2 days ago
Funny sounds and interesting songs at https://kayhinmusic.com/ especially you can download and set as ringtone for your mobile phone.
David1231212 · 12 weeks ago
I like your article very much, it gives me very useful knowledge if you are looking for free phone ringtones that will make you happy, please visit here: https://belsoli365.com/
David1231212 · 12 weeks ago
[url=https://dzwonkitones.com/najnowsze-dzwonki]Najnowsze Dzwonki na telefon[/url] my favorite, may the relaxing music help you in the long run.
IrvingStone · 8 weeks ago
Najnowsze Dzwonki na telefon my favorite, may the relaxing music help you in the long run.
IrvingStone · 8 weeks ago
Thanks for sharing, I found a lot of good ringtones in here: https://nhacchuong68.com/
David1231212 · 7 weeks ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: