Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS 

Remove all files in a directory except *.ogg

Remove all files in a directory except *.ogg

#!/bin/bash

find . ! -name "*.ogg" -exec rm -f {} \; 

Playlist generator

Bash script to generate a playlist with all your mp3s and oggs in.

rm ~/Desktop/playlist.m3u
find ~/music/ -iname "*.mp3" -print >> ~/Desktop/playlist.m3u
find ~/music/ -iname "*.ogg" -print >> ~/Desktop/playlist.m3u
« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS