Re: Bash and arrays

2009-07-15 Thread Jay Hall
On Jul 15, 2009, at 12:53 AM, Dan Nelson wrote: In the last episode (Jul 15), Bryan Venteicher said: I thought I understood how arrays work in bash, but I have been proven wrong. I am reading lines from a file and placing them in an array. However, when I am finished, the array has

Bash and arrays

2009-07-14 Thread Jay Hall
Ladies and Gentlemen, I thought I understood how arrays work in bash, but I have been proven wrong. I am reading lines from a file and placing them in an array. However, when I am finished, the array has a length of 0. Following is the code I am using. #!/usr/local/bin/bash COUNTER=0

Re: Bash and arrays

2009-07-14 Thread Bryan Venteicher
- Jay Hall jh...@socket.net wrote: Ladies and Gentlemen, I thought I understood how arrays work in bash, but I have been proven wrong. I am reading lines from a file and placing them in an array. However, when I am finished, the array has a length of 0. Following is the code I

Re: Bash and arrays

2009-07-14 Thread Dan Nelson
In the last episode (Jul 15), Bryan Venteicher said: I thought I understood how arrays work in bash, but I have been proven wrong. I am reading lines from a file and placing them in an array. However, when I am finished, the array has a length of 0. Following is the code I am using