How i'll delete a particular line from the file? Please give
answer as soon as possible. Thanks in advance.
Answer Posted / ranjan tikoo
If I have 10 lines in the file and I want to delete line 5
and 6 then use
sed '5,6 d' temp1.txt > temp2.txt
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What does this command do,"$more readme.txt“?
What is the use of the command 'ls -x chapter[1-5]' ?
What command will change your prompt to myprompt?
What are grep patterns?
What is unix command line?
What are the dos commands?
What is the use of cut command in unix?
Is grep faster than awk?
Differentiate cmp command from diff command.
Write a command to kill the last background job?
What are the unix commands?
Describe the usage and functionality of the command rm –r * in unix?
How do I search for text in vi?
How do I use nslookup?
Name the unix command to find how many days the server has been up.