[Techtalk] filtering command line

Wim De Smet kromagg at gmail.com
Tue Jun 12 11:13:16 UTC 2007


On 6/12/07, anisa khan <anisa.khan at yahoo.co.uk> wrote:
> I half misread the OP, sorry :)
>
> Anyway, talking about backquotes... I just thought, to mention it,
> in case someone here has not encountered it before.
>
> $(...)
> can also be used instead of backquotes in Bash.
>
> quite handy and neat, especially when there is a need for nested backquotes, ie:
>
> $ echo $(echo cd `pwd`)

I'm not entirely sure but I think this is a posix shell feature, so
you can use it in other shells too. It works in dash for one.

greets,
Wim


More information about the Techtalk mailing list