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 |
In Unix file permissions what does the second field denotes?
Explain the steps that a shell follows while processing a command.
What is the functionality of a top command?
Which Command is Used for temprary switch User?
What do chgrp command do?
Which command is used to find whether the system is 32 bit or 64 bit?
in UNIX,How do you check for processes started by particular user suppose the user name is 'suresh'?
How do I delete files from command prompt?
what is the difference between Touch & cat command
What is the syntax of grep command and what is its use?
what are the uses of filters?
What is file system in unix??