Thank you thank you to everyone but I realised that I could use a combination of head and tail as the following:
INSTANCE=`grep $N $FILE | head -n $COUNT1 | tail -n 1`
As long as I increment the count variable and echo the instance variable with a number and bracket it works.
Thank and I know that I will be back.
|