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 is the general format of unix command syntax?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
What is a command and examples?
What is grep and how do you use it?
What is a bash command?
What is the difference between awk and grep?
why metadb requires a seperate slice to create Solaris volume manager
What do chmod, chown, chgrp commands do?
Explain ‘library functions’ with respect to unix commands?
What are the differences among a system call, a library function, and a unix command?
Why is it called a shebang?
What will the following command do?
What is the use of tee command?
Who invented grep?
Name the general commands in using unix os for a beginner?