echo foo bar baz | xargs -n 1 cp /tmp/foo.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)