Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 4 down vote accepted

Same as always.

cat \(foo\)
cat '(foo)'
share|improve this answer
thanks. i think it was actually the spaces causing the issue. wrapping it in "foo (date time).ext" seems to work – Jonathan Day May 12 '11 at 11:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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