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

Answer Posted / sandip01

sed -n '1p' or head -1

Is This Answer Correct ?    31 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does this command do? Cat food 1 > kitty

974


What are grep patterns?

573


What will the following command do?

610


What is the use of finger command?

595


Name the various commands that are used for the user information in unix.

537






What is the difference between cat command and more command?

599


What does #!/ Bin sh do?

586


What is the comma to show the space allocation of files?

558


How do you grep a case insensitive?

536


why metadb requires a seperate slice to create Solaris volume manager

2551


Is it inbetween or in between?

577


What are the general commands in using unix os for a beginner?

575


What is the difference between grep and grep?

563


What is command substitution?

618


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

618