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 do chown command do?
Explain how to use grep command to list find the records of a file containing 10 different strings?
who to change the duplex setting of network interface in command line
What do know about tee command and its usage?
What do chmod, chown, chgrp commands do?
Describe the zip/unzip command using gzip.
What are the dos commands?
how unix kernel distinguishes between a normal file and device file ?
7 Answers Google, IBM, McAfee, Vodafone,
How do I use grep to find a file?
How to setup sudo, only can use for particular date & time only ( for solaris10 )
Which unix command lists files/folders in alphabetical order?
Will rm -r* removes hidden files?