#!/bin/bash VERSION="$1" IMPORT_DIR="$2" TARGET_DIR="$3" cd $IMPORT_DIR for file in `find . -regex ".*/ENV"`; do cp $file $TARGET_DIR$file done