Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.