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' .