Can anyone Plz .tell me "How to read the second line from a file" ?
Try:
sed -n '2p' file
or
awk '{ if(NR==2) print; } ' file
nother option that uses more resources (actually, miss uses) but is more close to a natural thinking is to use tail and head
head -n2 file | tail -n1