Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含文件名的文件。我想从该文件中读取这些文件名并将它们移动到特定位置。
您可以使用一个简单的循环:
#!/bin/bash while read -r filename; do mv "$filename" /DESTINATION/PATH/ done < input_filename
awk '{old=$0;new=/path/pathsub/;system("mv \""old"\" "new)}' your_file_with_file_list