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 first character of the output in ls l command?
What is the output of : $ ps-e $ ps-a commands
which command is used to change group?
how many internal commands is there in UNIX?
What is updatedb?
What is awk command used for?
What are file permissions in Unix, and how are they represented?
How do you remove a directory?
What does 'mkdir' command do in UNIX?
What command would users use to see what file one page at a time in UNIX?
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
Explain ‘library functions’ with respect to unix commands?