My favorites | Sign in
Project Logo
                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
echo "This will delete ALL MP3s in all subdirectories rooted at $(pwd)."
echo "Are you sure (y/N)?: "
read a
if [[ $a == 'y' || $a == 'Y' || $a == 'yes' || $a == 'YES' ]]; then
if [ ! -f "list.txt" ] ; then
find . -iname "*.mp3" > list.txt
fi
cat list.txt | while read file ; do
echo "Removing $file"
rm "$file" ;
done
fi
if [ -f "list.txt" ] ; then rm list.txt ; fi
Show details Hide details

Change log

r22 by meithan on Sep 18, 2009   Diff
Added two small scripts not related to the
project since Facebook and Blogger suck at
posting code (i.e. they can't) ><
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 418 bytes, 14 lines

File properties

svn:executable
*
Hosted by Google Code