簡體   English   中英

如何在當前目錄中查找以“ y”和“ .txt”結尾的文件(僅文件)並將其移動到其他文件夾?

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM