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?

link|improve this question

57% accept rate
feedback

1 Answer

You can use

echo $(someCommand)

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

link|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
feedback

Your Answer

 
or
required, but never shown

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