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 will the following command do?
What are filter commands in unix?
What is the comma to show the space allocation of files?
Name the unix command to find how many days the server has been up.
what is the advaantage of each user having its own copy of the shell?
What is the difference between grep and grep?
Is grep faster than awk?
Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?
What is sed awk grep?
Who invented grep?
What is the use of the tee command?
How do I run a whois command?
What command is used to check the current users?
Who command in unix operating system?
What is the comma to display different lines that are found when compare two files?