head -25 filename|tail -1
cat -n filename | grep '25'
head -25 file| tail -1 goes wrong because if some one deletes some lines even then it gives last line as 25th line.so the right option is tail +25 file| head -1