i have list of files in text file, 1 per line, , text file corresponding locations move files, 1 per line.
how can execute in bash (mv file on (text file1 line 1) location (on line 1 of text file2))?
read each file separately:
while read file1; read file2 <&3; mv -- "$file1" "$file2" done < file1.txt 3< file2.txt
Comments
Post a Comment