[SGVLUG] back-ticks vs. $(...)
Bryan D Howard
bryan at jetcafe.org
Thu Feb 23 09:19:24 PST 2006
"Robert" <mrflash818 at geophile.net> writes:
> > <snip>
> >> NAME=`echo ls -lrt *_data | nawk '{print $NF}'`
>
> I kind of prefer the
> NAME=$(echo ls -lrt *_data | nawk '{print $NF}')
>
> to using back-ticks myself.
While I agree that I like the newer syntax, I rarely actually use it.
While the newer Bourne shell derivitives I've looked at seem to
support it (bash, ksh, zsh), it doesn't work in vanilla Bourne shell.
{Bryan}
--
Bryan D Howard
<bryan at alumni.caltech.edu>
More information about the SGVLUG
mailing list