1
這是一個相對簡單的命令,所以如果存在重複並且有人可以引用我,我很抱歉,我會刪除/關閉此問題。殼牌符號:查找。 -type f -exec file'{}';
Man頁面,找到
find . -type f -exec file '{}' \;
Runs 'file' on every file in or below the current directory. Notice that the braces are enclosed in single quote marks to protect them from interpretation
as shell script punctuation. The semicolon is similarly protected by the use of a backslash, though ';' could have been used in that case also.
我不明白的符號\;
。那是什麼?
爲什麼'find'需要知道它何時結束? -exec命令的參數是一個有限的列表,所以它不知道何時結束? – imagineerThat
@imagineerThis,好問題。查看更新的答案。 – John1024