if we create a file, in that 10 rows(means 1,2,....9,10
like). i want 7 row exactly, which command use in unix?
plz send this question.

Answer Posted / guest

head -n 7 filename

Is This Answer Correct ?    4 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does touch command do in unix?

732


hw will u use awk in replacing cahrs and files

2736


How do I find previous commands in unix?

594


What is the function of grep command in unix?

593


What is awk used for?

624






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

645


What is the use of find command in unix?

588


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

628


What command is used to switching between users in unix?

564


What are grep patterns?

579


How to use grep command to list find the records of a file containing 10 different strings?

647


Which command is used to kill the last background job?

783


What do know about tee command and its usage?

591


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

674


What is awk good for?

588