View Single Post
Old 04-23-2013, 01:34 PM   #11
hfpop
Zealot
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: 116
Karma: 136410
Join Date: Apr 2011
Device: KPW1 WiFi 5.4.4
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