I have a directory (directory A) with 10,000 files in it. I want to move some of them to directory B and the others to directory C. I made a text file that contains the names o
directory of the script should be the your location of the files
TO_B=file1.txt TO_C=file2.txt for file in $TO_B do mv ${file} B/ done for file in $TO_C do mv ${file} C/ done