to list a particular line in the file

Answer Posted / abani_mahana

sed -n '1p' <filename>
head -n filename | tail -1
(change n as per your requirements)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you grep a case insensitive?

620


What is grep command in unix with examples?

685


What is grep and how do you use it?

661


What do chgrp command do?

700


What does the metacharacter mean?

691






What does grep v do?

643


What does grep v grep do?

637


What is grep in bash?

667


What is awk used for?

699


What is the use of the tee command?

690


Is command prompt unix?

681


Using unix command how to display no of records in oracle?

710


Enumerate some of the most commonly used network commands in unix?

706


What is sed awk grep?

686


Which command can you use to find the currently running process in unix server?

673