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

What is the unix command to confirm a remote host is alive or not?

569


What is grep r?

579


What are the commands in UNIX to list the files in a Directory?

605


Name the unix command to find how many days the server has been up.

591


How do I find previous commands in unix?

588






What is s and g in sed command?

551


What are some command words?

549


Does cp command overwrite files?

614


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

628


What do chown command do?

523


What does #!/ Bin sh do?

578


What is ‘ps’ command for?

608


Explain command to show the space allocation of files?

622


What is the use of awk command in unix?

565


How do you repeat a command in terminal?

585