#!/bin/sh while read e; do $(echo $e | sed -E "s/(.*[^ ]) +--> +([^ ].*)/cp -r \1 $1\/\2/") done < $2