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
Enumerate some of the most commonly used network commands in unix?
What is the difference between cat command and more command?
What does grep v do?
What command will change your prompt to myprompt?
What is the use of the command 'ls -x chapter[1-5]' ?
What are some command words?
What does sed command do in unix?
Differentiate cmp command from diff command.
What is the use of cut command in unix?
What is difference between grep and find command in unix?
What are the dos commands?
What is awk used for?
Give the command for finding the current date.
Is ‘du’ a command? If so, what is its use?
How do I use grep to search for a file?