View Single Post
Old 04-23-2013, 01:34 PM   #11
hfpop
Addict
hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.
 
Posts: 250
Karma: 136662
Join Date: Apr 2011
Device: N/A
I propose the following. Please comment.

Code:
#!/bin/sh

for FILE in `find /mnt/us/documents -name '*.sdr' -print 2>/dev/null` 
do
  FSPEC="${FILE%*.*}.*"
  FOUND=0
  for TEST in $FSPEC 
  do
    if [ -f $TEST ]; then 
      FOUND=1 
    fi
  done
  if [ "$FOUND" -eq 0 ]; then
    rm -rf "$FILE"
  fi
done
hfpop is offline   Reply With Quote