Help Me

Can u help me on this?

1.I have a file having 10 lines as content. Please tell me how to print the 5th and 9th line to the screen?

2.How to print last word in a line of file?

Hello!

In case you forgot to read the forum rules, here is quick copy.

Cheers.

The UNIX and Linux Forums