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.
我有一个 unix 机器上没有特定模式的文件列表。我想将这些文件从那台机器复制到我的本地机器。
例如,我有一个文本文件中的列表
文件列表.txt
一个.txt b.txt c.txt d.txt
一个.txt
b.txt
c.txt
d.txt
使用这个列表,我想从远程机器上复制这些文件。
最好的方法是什么?据我所知 scp 仅支持通配符。
xargs 是你的朋友。
cat files.txt | xargs scp user@remote: