#!/bin/tcsh -f set r=(/snap/amanda-hd) set i=(/snap/amanda-incr) cd $r set dl=(`find . -depth -type d -print`) cd $i foreach d ($dl) if (! -d $d) then echo mkdir -p $d endif end cd $r foreach d ($dl) set fl=(`find . -type f \! -name "*.0" -print`) foreach f ($fl) echo mv $f $i/$f end end