i/o redirection into variables

2006-03-28 Thread Dirk H. Schulz
Hi folks, I am looking for a possiblity to redirect error output into a variable: Instead of redirecting to a file ( e.g. command 2>>errorlogfile ) I would like to redirect into a variable. Is this generally possible? Dirk ___ Bug-bash maili

Line numbering in error messages

2006-03-27 Thread Dirk H. Schulz
Hi folks, I wonder if there is a thorough documentation on line numbering in bash's error messages? I find it often quite misleading and would like to know what I am counting wrong. Any hint or help is appreciated. Dirk ___ Bug-bash mailing lis

Re: Using variables in variables names

2006-03-14 Thread Dirk H. Schulz
Oh Mike, thanks a lot for such detailled and well structured clarification! That did it, now I can use it (and it gave my script a speedup of nearly 70 % less running time). Many thanks! Dirk Mike Stroyan schrieb: On 3/13/06, Paul Jarc <[EMAIL PROTECTED]> wrote: "Dir

Re: Using variables in variables names

2006-03-13 Thread Dirk H. Schulz
Paul Jarc schrieb: "Dirk H. Schulz" <[EMAIL PROTECTED]> wrote: ac=12 dings$ac=wasannersder -bash: dings12=wasannersder: command not found Variable names in assignments are not subject to expansion. So since "dings$ac", as-is, does not fit the syntax fo

Using variables in variables names

2006-03-13 Thread Dirk H. Schulz
Hi folks, I am sure this has been asked quite some times, but I did not find anything inspiring or helpful - in fact not too much at all. For accelerating a script I need the possibility to set up an unknown number of arrays and to name them (at least partly) with values of a variable. It is