I have 2 simple (I think) questions:
1. I am reading in a file which has 3 words in each record. I would like to put each word in a different array e.g. word1 would be in array1 , etc. How could I do that?
2. I am displaying the first word of each record , preceed by a sequence number on the screen e.g.
I have done this with the following code:
set -A number 1 2 3 4 5 6 7 8 9
while [[ $i -lt $max ]];do
I would like to print the sequence number without having to create the number array, but I have tried various things and nothing seems to work. How could I do that?