Accenture Interview Question

Write a script to mimic "cp -r" (recursive copy)