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

Very simple question, I need to know if the "query" parameter from Alfred still works My guess is, it wil not.

If so, how do you properly escape?

mysql -u [root] -p[foo] -e "create database [{query}];"


share|improve this question
Why don't you just try it yourself with echo "[{query}]" > /tmp/out? – patrix Jun 15 '13 at 12:10
oh thanks, I am not to great with bash script – Richard Jun 15 '13 at 12:14
Can you put it in an answer, because I saw that it worked. – Richard Jun 15 '13 at 12:28
up vote 1 down vote accepted

You can try it out yourself:

  • use a command like echo "[{query}]" > /tmp/out
  • execute the Alfred action
  • open Terminal and run cat /tmp/out to see the result
share|improve this answer

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.