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
Why is it called a shebang?
Explain how to use grep command to list find the records of a file containing 10 different strings?
Write a command to display a file’s contents in various formats?
What difference between cmp and diff commands?
How do you grep a case insensitive?
What is the command to compare two files in unix?
Is command prompt unix?
What is the search command in unix?
What is time_t?
how to sort the content of the file based on numeric values
What are the general commands in using unix os for a beginner?
What is the use of sed command in unix?
What is awk good for?
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
What does grep v do?