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

Answer Posted / hari

head 1 file

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

795


What is difference between grep and find command in unix?

577


How do I search for text in vi?

584


What does this command do,"$more readme.txt“?

685


How do I use nslookup?

568






What will the following command do?

611


What is unix command line?

602


How do I delete files from command prompt?

549


hw will u use awk in replacing cahrs and files

2726


What is the command to find hidden files in the current directory?

577


What is command substitution?

619


What do know about tee command?

600


What is awk used for?

616


Who command in unix operating system?

658


What is the function of grep command in unix?

580