How i'll delete a particular line from the file? Please give
answer as soon as possible. Thanks in advance.
Answer Posted / sekhar
by useing sed command we can delete a particular line foe example...
Ans: sed 'nd' < filename
...here n means no.of the line for ex we want to delete 5th line
sed '5d' < filename...by using this command we delete multiple lines also....
sed '5,8d' < filename..this will deletes 5th to 8th line...
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain ‘library functions’ with respect to unix commands?
What difference between cmp and diff commands?
What are the commands in UNIX to list the files in a Directory?
What is the functionality of a top command?
What is ‘ps’ command for?
What are grep patterns?
What is in grep command?
What does 'mkdir' command do in UNIX?
What do know about tee command?
What is nr in awk command?
What does the command '$ls | wc –l > file1' do?
Which command should you use to find the remaining disk space in unix server?
Which command is used to delete all files in the current directory and all its sub-directories?
What is awk used for?
Who command in unix operating system?