How i'll delete a particular line from the file? Please give
answer as soon as possible. Thanks in advance.

Answer Posted / sekhar

by useing sed command we can delete a particular line foe example...
Ans: sed 'nd' < filename
...here n means no.of the line for ex we want to delete 5th line
sed '5d' < filename...by using this command we delete multiple lines also....
sed '5,8d' < filename..this will deletes 5th to 8th line...

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain ‘system calls’ with respect to unix commands?

606


Write a command to kill the last background job?

622


How does pipe () work?

599


Who command in unix operating system?

669


What does #!/ Bin sh do?

599






What is the pipe command?

585


What is updatedb?

590


Explain command to view process running?

619


What is the behavioural difference between cmp and diff commands?

682


Who invented grep?

657


What's a command word?

592


What are the dos commands?

657


What command will change your prompt to myprompt?

710


What is the first character of the output in ls l command?

637


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

583