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 syntax of grep command and what is its use?
their is a file1,file2 and i want to append file1 data to file2?
What is the behavioural difference between cmp and diff commands?
what is ls -ltd?
What does this command do? Cat food 1 > kitty
What is the unix command to confirm a remote host is alive or not?
Is command prompt unix?
What is shrinking file system in AIX where it actually resides?
What is the functions of zambie process?
What do you mean by zambie process?
distinguish between user mode and kernel mode?
How to setup sudo, only can use for particular date & time only ( for solaris10 )