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 is s and g in sed command?

0 Answers  


What command a user use to view a long text file one page at a time in UNIX?

8 Answers   IBM,


What is FIND, GREP and SED ? Could you please give me the difference between all the three? Where we use this commnands?

6 Answers   Deloitte, Polaris,


Describe the usage and functionality of the command rm –r * in unix?

2 Answers  


What is the difference between AWK and SED commands? Plz give example and explain...

3 Answers   RBS,






which script will invoke first ,when /etc/init.d starts

1 Answers  


in UNIX,How to copy file into directory?

5 Answers  


which command is used to change group?

5 Answers  


Name the various commands that are used for the user information in unix.

0 Answers  


which command is used to identify the type of the file?

3 Answers  


How to check whether some services are running in another server or not? Suppose i am currently in a server named A.I want to check whether some services are running in server B without logging into the server B.

3 Answers   Amazon, MBA, Syntel, TCS, Unisys,


how to make IGNITE-BACKUP in HP-UX?

4 Answers   HP,


Categories