i wrote a function that simulate cp function (copy in bash ) , basically this function takes a file as an input and copies it to a dest file :
cp sourceFile d