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 / mo

Using VI editor this can be done like this.

type this command.

:1,7w <newfilename>

All Good
Mo

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is unix command line?

610


What is the use of the command 'ls -x chapter[1-5]' ?

663


What is the search command in unix?

603


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

645


Differentiate cmp command from diff command.

588






How do I clear my terminal history?

586


What does sed command do in unix?

567


How do I run a bash script?

586


What is time_t?

588


What does grep v grep do?

556


Explain command to view process running?

617


How do I search a whole word in vim?

693


What do know about tee command?

607


What are some command words?

568


how to sort the content of the file based on numeric values

1254