Input a list of files & directories to be copied with ditto

view full story

http://unix.stackexchange.com – I have a short list of files and directories of which I would like to make a flat copy using ditto in a bash shell. There are approximately 8-10 files and/or directories that need to be copied. I know that I can just create a series of conditional statements such as: if [ -d ~/Documents ]; then ditto ~/Documents ~/BACKUP/Documents echo "Documents copied successfully." else echo "WARNING: No documents were copied, directory does not exist in expected location." fi However, I am curious if there is a stylistically better or more efficient wa (HowTos)