Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- for file1 in ./*.mp3; do
- echo "Finding match for $file1"
- m1=`md5sum "$file1" | sed 's/ .*//g'`
- for file2 in ./Sciolte/*.mp3; do
- #echo "Evaluating $file2"
- m2=`md5sum "$file2" | sed 's/ .*//g'`
- #echo $m1 $m2
- if [ $m1 = $m2 ]; then
- echo MATCH: $file1 $file2
- rm "$file2"
- break
- fi
- done
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement