bash magic to copy files