find: missing argument to `-exec'

相關問題 & 資訊整理

find: missing argument to `-exec'

Problem: I just issued a Linux find command, and got the following error message: find: missing argument to -exec. Solution: Amazingly, it turns ..., 在linux下使用find命令时,报错:find: missing argument to `-exec' 具体执行命令为: find /u03 -name server.xml -exec grep '9080' }-; 目的是 ..., Unless you put a backslash before the ; , the shell will interpret that as a command separator, not as an argument to find command., find -exec reports the error in question when it doesn't see an ... Outside quotes, -; should be that argument -- but it can be different if your file ..., You missed the a ; at the end (and a space too between } and ; ). The correct command is: find . -type f -name "IMAG1806.jpg" -exec rm -f } -;.,A -exec command must be terminated with a ; (so you usually need to type -; or ';' to avoid interpretion by the shell) or a + . The difference is that with ; , the ... , As mentioned in the opening post, the solution I found is: $ find ./ -name "*JIM*" -exec cp --target-directory=$TARGET_DIR } +.,, First, you use }; , but the ; must be a parameter of its own. Second, the command ends at the && . You specified “run find, and if that was successful, remove the file named }; .“. If you want to use shell stuff in the -exec command, you need to

相關軟體 NetBalancer 資訊

NetBalancer
NetBalancer 使用瀏覽和做任何網上活動舒適,即使您的下載管理器或洪流客戶從互聯網下載大文件只是降低其網絡優先級與 NetBalancer. 您可以使用 NetBalancer 來設置下載或上傳傳輸速率優先級的應用程序,並監視他們的互聯網交通。具有較高網絡優先級的應用將比具有較低網絡優先級的應用獲得更多的通信帶寬。福利 NetBalancer 等流量整形軟件是 NetBalancer 的作... NetBalancer 軟體介紹

find: missing argument to `-exec' 相關參考資料
Linux 'find' command error: missing argument to -exec | alvinalexander ...

Problem: I just issued a Linux find command, and got the following error message: find: missing argument to -exec. Solution: Amazingly, it turns ...

https://alvinalexander.com

linux报错find: missing argument to `-exec' - 青葱岁月- ITeye博客

在linux下使用find命令时,报错:find: missing argument to `-exec' 具体执行命令为: find /u03 -name server.xml -exec grep '9080' }-; 目的是 ...

https://chenzhou123520.iteye.c

command line - find: missing argument to `-exec' - Ask Ubuntu

Unless you put a backslash before the ; , the shell will interpret that as a command separator, not as an argument to find command.

https://askubuntu.com

bash - Shell script - find: missing argument to `-exec' - Stack ...

find -exec reports the error in question when it doesn't see an ... Outside quotes, -; should be that argument -- but it can be different if your file ...

https://stackoverflow.com

command line - "find: missing argument to `-exec'" when using ...

You missed the a ; at the end (and a space too between } and ; ). The correct command is: find . -type f -name "IMAG1806.jpg" -exec rm -f } -;.

https://askubuntu.com

find: missing argument to -exec - Stack Overflow

A -exec command must be terminated with a ; (so you usually need to type -; or ';' to avoid interpretion by the shell) or a + . The difference is that with ; , the ...

https://stackoverflow.com

bash - Solution to error 'find: missing argument to -exec' with ...

As mentioned in the opening post, the solution I found is: $ find ./ -name "*JIM*" -exec cp --target-directory=$TARGET_DIR } +.

https://stackoverflow.com

find: missing argument to -exec - Unix & Linux Stack Exchange

https://unix.stackexchange.com

bash - find: missing argument to -exec - Stack Overflow

First, you use }; , but the ; must be a parameter of its own. Second, the command ends at the && . You specified “run find, and if that was successful, remove the file named }; .“. If you wan...

https://stackoverflow.com