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 / srinivas bolusupati

sed '7d' fileName.txt

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which command is used to restrict incoming messages?

594


Write a command that will display files in the current directory, in a colored, long format.

689


What is the significance of the 'tee' command?

600


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

598


What is unix command?

586






What does pipe () return?

600


What command is used to switching between users in unix?

566


Why is shebang used?

600


Write a command to display a file’s contents in various formats?

631


Enumerate some of the most commonly used network commands in unix?

620


What is the use of the tee command?

602


Explain command to view process running?

619


How do I clear my terminal history?

588


What do chown command do?

536


What does the command ' $who | sort –logfile > newfile' do?

774