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 / susanta polley

sed -e 's/^#//g' input_filename > output_filename

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is grep and how do you use it?

569


What does #!/ Bin sh do?

582


Why is grep called grep?

773


What is used to type command?

537


What is difference between grep and find command in unix?

574






How does pipe () work?

587


What are awk commands?

578


Does cp command overwrite files?

614


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

791


Which command will print your home directory on screen?

540


What are the commands in UNIX to list the files in a Directory?

613


What is updatedb?

580


How to use grep command to list find the records of a file containing 10 different strings?

643


Which command is used to find whether the system is 32 bit or 64 bit?

627


How do I search for text in vi?

578