Recently, in the development process, I want to delete a jar package on the server, but the name of the jar package is in parentheses
at the beginning, I deleted it like this:
rm -f HIBIKI_API(1).jar
But I got the following sentence:
bash: syntax error near unexpected token `('
Then I googled it and found that after linux5.0, you can’t use brackets. At this time, you need to translate. There are two ways of translation
1.rm -f HIBIKI_API\(1\).jar
2.rm -f "HIBIKI_API(1).jar"
In this way, the translation will be OK
Similar Posts:
- [Solved] Error: bash: syntax error near unexpected token ` (‘
- Solve the problem of unexpected syntax error: unexpected token var reporting error
- The solution to the problem of syntax error near unexpected token then ‘
- Unexpected token of webpack package error
- [Solved] MYSQL ERROR 1093 – You can’t specify target table ‘readbook’ for update in FROM clause
- How to Solve .sh: line 6: syntax error near unexpected token `do
- How to Solve Error: Unexpected token o in JSON at position 1
- Node unexpected token import
- [Two Solutions] Syntax error: unexpected token import
- [Solved] Centos7 Execute Script Error: syntax error near unexpected token `fi’