[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT: Which tool, and how, to get partial string from file?



Thomas Adam wrote:

On Sat, Aug 21, 2004 at 09:41:11PM +0800, John Summerfield wrote:
but for readability, don't use back-ticks. Instead
WORD=$(sed -ne 's/^.*\(icewm\).*$/\1/p' < /home.local/snert/.xinitrc)

$(..) is not as portable as ``.


On what sh equivalents does it not work? I've just tried dash and sh --posix and those are fine. I've previously used it in busybox.


--

Cheers
John

-- spambait
1aaaaaaa@computerdatasafe.com.au  Z1aaaaaaa@computerdatasafe.com.au
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/



Reply to: