move all files from a folder to another linux keeping source folder code example
Example: bash how to copy or move all files in a list
# Basic syntax:
cp `cat list_of_files` /new/directory # To move the files, use mv instead
# Where the list_of_files can be separated by new lines or spaces and
# can include the full path or just the relative path (as long as you
# run the command in the directory where the files are for the latter)