A file has 1000 lines and i want to display only 1st line
how to do it?
pls ..tel me

Answer Posted / namdeo patil

head -n 1 filename

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to display no of records in oracle using unix command?

585


How do I search for a file in unix command?

541


Is grep faster than awk?

555


What is a command and examples?

575


What is {} in find command?

576






Which unix command to make a new directory?

585


What is awk good for?

578


What do chgrp command do?

585


What is awk command used for?

596


What is the command to find maximum memory taking process on the server?

665


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

633


What is used to type command?

537


What is the use of awk command in unix?

573


How do I use grep to search for a file?

578


What are awk commands?

579