Got it
Maybe not elegant but is works fine
Thanks
#!/bin/sh
find . -name *.html|cut -f2,3 -d/|sort|uniq > filelist
while read A
do
DIR1=`echo $A| cut -f1 -d/`
DIR2=`echo $A| cut -f2 -d/`
mv /tera3/http/"$DIR1"/"$DIR2"/* /tera3/http/"$DIR1"/
rmdir /tera3/http/"$DIR1"/"$DIR2"/
done < filelist
Quote:
No warranty for anyone !! :-)
|