[Techtalk] BASH command subsitution

Hamster hamster at hamsternet.org
Sun Sep 7 10:26:19 EST 2003


Hi,

> $ echo the date today is 'date'

It looks like you're using the wrong punctuation. What you've typed in here
are single quotes, but command substitution works with backticks, not
quotes.

Backticks look like : `````

Your command should look like

echo the date today is `date`

Hamster



More information about the Techtalk mailing list