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 command substitution?

621


How do I open a port?

589


What is ‘ps’ command for?

614


How do I search for a file in unix command?

546


What is the difference between grep and grep?

565






What are grep patterns?

575


Who command in unix?

571


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

759


How do I find previous commands in unix?

592


What is grep in bash?

586


What is a command and examples?

583


Why is awk called awk?

577


Explain mount and unmount command.

613


What are some command words?

561


What is the use of cut command in unix?

690