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 command is used to check the current users?
What does the command ' $who | sort –logfile > newfile' do?
What is sed awk grep?
How can we use grep command in unix?
Which command is used to find whether the system is 32 bit or 64 bit?
What is rmdir command?
Which unix command lists files/folders in alphabetical order?
What is the difference between awk and grep?
What is awk good for?
How to use grep command to list find the records of a file containing 10 different strings?
What is the pipe command?
Explain ‘system calls’ with respect to unix commands?
Which command is used to kill the last background job?
What does find command return in unix?
What command will change your prompt to myprompt?