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

If I normally have to write:

echo `someCommand` 

...in order for someCommand to be executed and its output to be sent to echo. Is there some way I can instead write:

echo someCommand

...and get the same effect - ie: no backticks?

share|improve this question

You can use

echo $(someCommand)

Instead of backticks, if it's just backticks you don't like.

share|improve this answer
    
I was hoping to save myself the extra keystrokes :) Any alternatives? – Taras Jul 8 '11 at 0:28
    
@Taras: Nope, this is the only other way. – Wuffers Jul 12 '11 at 4:49

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.