Music Library Cleanup and Merging

From Pikes' Wiki
Revision as of 20:04, 16 March 2009 by 172.29.1.13 (talk) (New page: *Find all files with incorrect extensions **find Artist ! -type d -regex "[^.]+"<br/>replace "Artist" with directory to search. It cannot contain or be "." due to the regex used. *Find fi...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  • Find all files with incorrect extensions
    • find Artist ! -type d -regex "[^.]+"
      replace "Artist" with directory to search. It cannot contain or be "." due to the regex used.
  • Find files that are DRM protected and remove them or the protection
#!/bin/bash
if /tmp/mplayer/mplayer.exe -ao pcm:file=abc.wav "$1" 2>&1 | egrep -q overflow;
then
        echo $1;
fi
rm abc.wav

You can replace abc.wav with /dev/null and eliminate the need for the "rm abc.wav" on most systems. I ran this initially on a winders box.