Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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}];"

thanks

share|improve this question
1  
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
1  
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .