bash expansion help

Steve Harvey sgh-Ja3L+HSX0kI at public.gmane.org
Sun Feb 4 21:53:27 UTC 2007


On Sun, Feb 04, 2007 at 11:52:09AM +0100, Christopher Friedt wrote:
> Hi everyone,
> 
> I'm trying to find some method to expand this variable $arm_opts:
> 
> "GENERIC_ARM ARM{610,710,720T,920T,922T,926T,_{SA110,SA1100,XSCALE}}"
> 
> to this:
> 
> "GENERIC_ARM ARM610 ARM710 ARM720T ARM920T ARM922T ARM926T ARM_SA110 
> ARM_SA1100 ARM_XSCALE"
> 
> in bash.
> 
> Any tips ?
> 

arm_opts_exp=`echo echo $arm_opts | bash`
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list