Hi,

I created a simple script that will list you all the directories of
your music library that does contain audio files but does not contain a
folder.jpg file.


Code:
--------------------
    
  #!/bin/bash
  LIBRARY=/library/music
  #
  find $LIBRARY -type d  -print0 | xargs -0 ls -d > /tmp/nocoverart.tmp
  IFS=$'\n'
  for i in `cat /tmp/nocoverart.tmp`
  do
  if test ! -e $i/folder.jpg
  then
  if test `file $i/* | grep audio | wc -l` -gt 0
  then
  echo $i
  fi
  fi
  done
  rm -f /tmp/nocoverart.tmp
  
--------------------


Hopefully this will help others as well.

Ronald.


-- 
tingtong5
------------------------------------------------------------------------
tingtong5's Profile: http://forums.slimdevices.com/member.php?userid=9671
View this thread: http://forums.slimdevices.com/showthread.php?t=69324

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to