Hi,
Is it possible to rewrite this while-loop to make it work?
i=1
while i < 10
{
myArr[i]=`awk -v var=$line '{ lines[$0]++ } END { for( line in lines ) print line }' myFile`
i = `expr $i + 1`
}
Am I on the right track at all? This syntax is complicated..
I want the array to be filled up with the 10 first records of my file.
-Helene