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 grep r?
What is the nmap command?
Who wrote grep?
What is awk command used for?
How do I delete files from command prompt?
How do I use nslookup?
Write a command to display a file’s contents in various formats?
Name the various commands that are used for the user information in unix.
Enlist some filename manipulation commands in unix.
What is the command to compare two files in unix?
What is the search command in unix?
How to find $ai_serual resolved path by using unix
Describe the usage and functionality of the command rm –r * in unix?
What is grep in bash?
What is grep short for?