moving to a specified line number

Hi

Is there any command or a trick that can take me to a specifed line number in unix .

Suppose i have a file with 2000 lines and i would like to go to line number 1899 and then print out the contents of the line.

regards
Hrishy

sed -n '1899 p' somefile

Cheers
ZB

1 Like

Hi Zazzyboy

You are real zaay :slight_smile:

regards
Hrishy