Can any u pls tell me :-
I want to read a particular line from a file, say line no. 10.
This can be done by using awk..but that method I think, is inefficient.
Is there any direct command for this?
Thanks
Can any u pls tell me :-
I want to read a particular line from a file, say line no. 10.
This can be done by using awk..but that method I think, is inefficient.
Is there any direct command for this?
Thanks
Personally, I would use:
sed -n 10p filename
Thanks For Ur Reply. I will try it.
What I use today is
sed -n "10s/.*/&/p" filename
But ur reply looks really goodone for me.