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 |
Which command is used to find whether the system is 32 bit or 64 bit?
What is the search command in unix?
Explain ‘system calls’ with respect to unix commands?
what is the use of the hidden files?
What difference between cmp and diff commands?
why unix operating system provides more security than other operating systems?
what is the advaantage of each user having its own copy of the shell?
how unix kernel distinguishes between a normal file and device file ?
7 Answers Google, IBM, McAfee, Vodafone,
distinguish between user mode and kernel mode?
what is the use of wild cards?
How do you grep recursively?
How do you execute a UNIX command in the background?