![指令「find . -type f -size 1033c ! -executable -exec file {} + | grep ASCII」中「{} +」的意義](https://rvso.com/image/170254/%E6%8C%87%E4%BB%A4%E3%80%8Cfind%20.%20-type%20f%20-size%201033c%20!%20-executable%20-exec%20file%20%7B%7D%20%2B%20%7C%20grep%20ASCII%E3%80%8D%E4%B8%AD%E3%80%8C%7B%7D%20%2B%E3%80%8D%E7%9A%84%E6%84%8F%E7%BE%A9.png)
{} +
這個命令中有什麼意義呢?
find . -type f -size 1033c ! -executable -exec file {} + |
grep ASCII
你能透過分解指令來向我解釋它的作用嗎?我是一個菜鳥。
答案1
{} +
表示找到的檔案/目錄的集合。
例如:
find . -type d -empty -exec rmdir {} + ;
這將找到空目錄並運行rmdir DIRNAME1 DIRNAME2 ...
.
{} +
這個命令中有什麼意義呢?
find . -type f -size 1033c ! -executable -exec file {} + |
grep ASCII
你能透過分解指令來向我解釋它的作用嗎?我是一個菜鳥。
{} +
表示找到的檔案/目錄的集合。
例如:
find . -type d -empty -exec rmdir {} + ;
這將找到空目錄並運行rmdir DIRNAME1 DIRNAME2 ...
.