what is the cmd to remove the comment lines from a file and
to display the original text without comments?
thanks in advance......
Answers were Sorted based on User's Feedback
Answer / susanta polley
sed -e 's/^#//g' input_filename > output_filename
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / deepak
sed -e 's/^#//g' -e 's/#//g' input_filename > output_filename
| Is This Answer Correct ? | 6 Yes | 5 No |
What is the use of egrep command in unix?
What does pipe () return?
what does the 'tee' command do?
How do I use grep to find a file?
What does 'mkdir' command do in UNIX?
What is in grep command?
Is ‘du’ a command? If so, what is its use?
what are filters?
what will be the output of ls ~/..
what is virtual machine?
How do you stop a running process?
Give Command that will change the name of a directly from paypal to eBay