[TxMt] Bash query

Richard Dyce dd at dyce.com
Wed Nov 7 08:28:29 UTC 2007


Allan,

Thanks! I couldn't see that any other way to do it, but I thought it  
was a good idea to check - I think I'm getting the hang of bash ;-)

R

On 6 Nov 2007, at 22:34, Allan Odgaard wrote:

> On 6 Nov 2007, at 12:35, Richard Dyce wrote:
>
>> Not urgent an query, just looking for some insight...
>> [...]
>> Whilst it does work, I realised that there are more cunning minds  
>> at work on this list than mine, and perhaps they might have some  
>> way to clean-up those substitutions for the $tags variable in the  
>> middle. I know I can do it using a sed script, but I was wondering  
>> if there was some elegant bash trick I was missing....
>
> Nope, bash is very limited in that way, i.e. it basically does a two- 
> step variable expansion with close to no support for recursive  
> constructs (forcing you to call out to a more capable scripting  
> language or split up your expressions into multiple lines).
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate




More information about the textmate mailing list