echo foo bar baz | xargs -n 1 cp /tmp/foo.txt
$ echo ~/Downloads ~/Documents | xargs -n 1 cp ostechnix.txt
import shutil
import os
os.chdir('source_image_dir_path')
dst_dir = "your_destination_dir_path"
for f in os.listdir():
shutil.copy(f, dst_dir)