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

Enumerate some of the most commonly used network commands in unix?

820


Why is awk called awk?

764


Can you explain a little bit about command substitution?

803


What is a command and examples?

787


When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

1951






How do I clear my terminal history?

788


How do I open a port?

764


How do I use grep to find a file?

801


What is grep in bash?

764


What is {} in find command?

767


What does the md command do?

760


What is the use of cut command in unix?

932


Explain command to view process running?

801


What does awk stand for?

786


What is the use of awk command in unix?

758