Selecting a line value

Hello,

I just wanted to know if there is a way in UNIX to select a line value from a list of words. there is no line number before each word, hence could not use grep.

Quite hard to comprehend.

Could you please furnish sample input and desired output ?

Assuming that you want to get the value of the list in a filie.
The below code gets the value of the first line in a file

To get the value of the 5th line in afile

@ bobbygsk

many thanks for the insight, it really did help

Perhaps it's more efficient to use sed. To print line 25:

sed '25q;d' file

Or with awk:

awk 'NR==25{print;exit}' file

Regards