![](/img/trans.png)
[英]Copy first N files which start with 'a' 'c' or 'e' from one folder to another in Linux
[英]Copy specific files from one folder to another in Unix/Linux
find
是一個獨立於cp
程序。 我認為您嘗試做的是使用 find 作為 cp 的輸入。 您可以為此使用命令替換:
cp $(find directory/ -name "*file_00*") destination/
$(...)
基本上在里面運行命令並返回它的輸出。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.