Linux學習筆記------day9(3.28)-----find中exec的用法,awk賦值

find中exec的用法 藉助-exec選項與其餘命令結合使用 找出當前目錄下全部root的文件,並把全部權更改成用戶tom find . -type f -user root -exec chown tom {} \; 上例中,{} 用於與-exec選項結合使用來匹配全部文件,而後會被替換爲相應的文件名。 找出本身家目錄下全部的.txt文件並刪除 find $HOME/. -name "*.tx
相關文章
相關標籤/搜索