1

A previous developer on my project created backup copies of files using the format "filename (date time).extension" even though the project was under SVN control (don't ask!!!). I now can't open those files from bash as I receive the error message

-bash: syntax error near unexpected token `('

Is there an escape character or quotes that I can use to instruct bash to open the file?

4

Same as always.

cat \(foo\)
cat '(foo)'
1
  • thanks. i think it was actually the spaces causing the issue. wrapping it in "foo (date time).ext" seems to work May 12 '11 at 11:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.