Re: Problem with array element assignment

2007-04-15 Thread Paul Jarc
homac <[EMAIL PROTECTED]> wrote: > cat test.txt | while read s l ; do Read entry E4 in the bash FAQ: http://tiswww.case.edu/php/chet/bash/FAQ paul ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash

Problem with array element assignment

2007-04-15 Thread homac
Hello, i experienced a problem with array element assignment. The following script should read a text file and assign every line beginning with the symbol '?' to the array U. The script: i=0 cat test.txt | while read s l ; do case $s in ( '?' ) U[i]=$l