How i'll delete a particular line from the file? Please give
answer as soon as possible. Thanks in advance.

Answers were Sorted based on User's Feedback



How i'll delete a particular line from the file? Please give answer as soon as possible. Thank..

Answer / rabindra mishra

sed 'n,n+1,n+2/d' file1> file2

Is This Answer Correct ?    0 Yes 3 No

How i'll delete a particular line from the file? Please give answer as soon as possible. Thank..

Answer / shanthi

press shift+backspace on that specific like ...
This can remove the line

Is This Answer Correct ?    0 Yes 7 No

Post New Answer

More Unix Commands Interview Questions

what are filters?

6 Answers  


What is in grep command?

0 Answers  


Which command is used to kill the last background job?

0 Answers  


What is command substitution?

0 Answers  


if we create a file, in that 10 rows(means 1,2,....9,10 like). i want 7 row exactly, which command use in unix? plz send this question.

28 Answers   TCS,






Explain command to show the space allocation of files?

0 Answers  


What is used to type command?

0 Answers  


Why is it called grep?

0 Answers  


How to add content of one file into another file at the beginning

12 Answers  


what does a process mean?

7 Answers   Infosys,


The rm command removes links to file. What does this mean? How then is a file deleted from the file system?

5 Answers  


Name the unix command to find how many days the server has been up.

0 Answers  


Categories