3 # copy all files below <from> ($1), that match <filepattern> ($3)
 
   4 # into target <to> ($2)
 
  10         # create target dir, if necessary
 
  11         rel_dir=${rel_path%/*}
 
  13         cp -a $1/$rel_path $2/$rel_dir
 
  16 usage="usage: treecopy <from> <to> <filepattern>|-e"
 
  25         for file in $(find $1 \( -type f -o -type l \) -executable)
 
  30         for file in $(find $1 \( -type f -o -type l \) -name "$3")