#! /bin/bash # The script copies the intended files as defined by filetocp1, filetopcp2 into each directories. filetocp1="postprocessdata.sh" filetocp2="generateTcvsxjpg.txt" ls | xargs -n 1 cp -i $filetocp1 ls | xargs -n 1 cp -i $filetocp2