what is the cmd to remove the comment lines from a file and
to display the original text without comments?
thanks in advance......

Answer Posted / srividya

sed '/^#/ d'

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

1065


What is nr in awk command?

695


How do I search a whole word in vim?

771


How does the system know where one command ends and another begins?

1691


Which command can you use to find the currently running process in unix server?

673






What do know about tee command and its usage?

703


What is grep command in unix with examples?

685


What does the “echo” command do?

728


What is the search command in unix?

678


What is the use of awk command in unix?

652


What are filter commands in unix?

636


How do I find previous commands in unix?

681


What is the command to view process running?

673


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

883


What command is used to check the current users?

680