[英]How to find files (files only) with the ending 'y' and '.txt' in the current directory and move them to a different folder?
我用了:
find . -type f -maxdepth 1 -name "*y" | mv {} /Downloads/
但是它什么也沒做。 我究竟做錯了什么?
嘗試執行以下命令。
mv * y.txt destinationFolderPath
希望對您有所幫助!!!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.