Linux 利用管道複製cp多個文件到指定目錄

1、ls | tail -11| xargs -i cp -r {} /root/web/templates/web       拷貝最後11個文件到根目錄的/root/web/templates/下spa 2、ls | grep test | xargs -i cp -r {} /root/web/templates/test      篩選當前目錄下文件名包含test的文件,拷貝到/root/
相關文章
相關標籤/搜索