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
Explain ‘system calls’ with respect to unix commands?
Write a command to kill the last background job?
How does pipe () work?
Who command in unix operating system?
What does #!/ Bin sh do?
What is the pipe command?
What is updatedb?
Explain command to view process running?
What is the behavioural difference between cmp and diff commands?
Who invented grep?
What's a command word?
What are the dos commands?
What command will change your prompt to myprompt?
What is the first character of the output in ls l command?
What are the general commands in using unix os for a beginner?