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 |
Why is shebang used?
What are file commands?
What is the basic difference between unix and windows operating systems?
43 Answers Bopro, College School Exams Tests, CTS, IBM, IT-Kids, Priyadarshini, Sybian Technologies, Tolani Maritime,
What is command statement?
What is the function of grep command in unix?
solaris Run level?
What is the difference between cat and more command?
What does find command return in unix?
If we want to see first 35 lines of a file which command we have to use?
What is the difference between a hard link and a soft link in Unix?
what is the advaantage of each user having its own copy of the shell?
How can you create a symbolic link to a file or directory?