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

Answer Posted / ansar

Esc dd on command prompt in vi mode.

grep -v "pattern" will also remove the line if we know the
matching pattern on that line.

Is This Answer Correct ?    8 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do know about tee command?

607


What does grep v do?

562


Does cp command overwrite files?

628


How to find $ai_serual resolved path by using unix

1031


What is the search command in unix?

609






Is grep faster than awk?

568


What does the command '$ls | wc –l > file1' do?

684


What are the dos commands?

657


What is the comma to show the space allocation of files?

562


What is the command to compare two files in unix?

627


How can you see the command line history?

588


What is grep and how do you use it?

581


What is the behavioural difference between cmp and diff commands?

682


What are the general commands in using unix os for a beginner?

583


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

802