I have a file file1.txt located in a trial folder containing the location of image files. I want to read the list, and copy the image files to a new folder, test_folder.
The entries in file1.txt look like:
I tried to use a similar question to solve the problem: Copy/move a list of files to a new directory
while read file; do cp "$file" /trial/test_folder; done < /trial/file1.txt
I get the error "bash: /trial/file1.txt: No such file or directory". Any help would be great!