#!/bin/sh

for file in $(find simulation/templates/gaia -type f -name 'flora_tree_*')
do
  dirName=$(echo $file | rev | cut -d'/' -f2- | rev)
  newName=$(echo $file | cut -d'_' -f3-)
  svn mv $file $dirName/tree/$newName
done
