Question
From a file on the local copy server, use the following command:
scp [email protected]:/home/test/files(202110~202111).xls .
Error reporting:
bash: – C: line 0: syntax error near unexpected token ` (‘
Solution:
-
- enclose the entire path in single quotation marks;
- before the parentheses, add the escape character
scp [email protected]:'/home/test/files\(202110~202111\).xls' .
Read More:
- Notes on Linux SCP command using specific port
- [Solved] Sed Failed to Reference Variable error: extra characters after command
- [Solved] Linux scp Error: Host key verification failed.
- scp Command: Unable to negotiate with xxx.xx.xx.xx port 22: no matching cipher found.
- [Solved] UnicodeEncodeError: ‘ascii‘ codec can‘t encode characters in position 3-9: ordinal not in range(128)
- Termux setting path environment variable
- [Solved] Ubuntu pip Install Error: which is not on PATH
- C# WinForm gets the storage path of the selected file
- [Solved] configure:error:no acceptable C compiler found in $PATH
- [Solved] configure: error: no acceptable C compiler found in $PATH
- [Solved] Cannot find command ‘git‘ – do you have ‘git‘ installed and in your PATH?
- Resolving yum source-related issues: Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again
- hb set Error: OHOS ERROR] Invalid vendor path: /home/openharmony/vendor (openharmony Compile ubuntu20.04 official document)
- [Solved] zookeeper Cluster error: Error: JAVA_HOME is not set and java could not be found in PATH.
- [Solved] Homebrew Error: xcrun: error: invalid active developer path
- [Solved] Centos7 Error: gcc: configure: error: in build‘: configure: error: no acceptable C compiler found in $PATH
- Solve the error report of the find command: paths must precede expression
- Running shell script reports an error: “syntax error near unexpected token solution ‘”
- Ubuntu shell Script syntax error near unexpected token `$‘{\r‘‘
- [Solved] Shell error: syntax error: unexpected end of file