what is the cmd to remove the comment lines from a file and
to display the original text without comments?
thanks in advance......
Answer Posted / deepak
sed -e 's/^#//g' -e 's/#//g' input_filename > output_filename
Is This Answer Correct ? | 6 Yes | 5 No |
Post New Answer View All Answers
What are reported commands?
Explain command to display different lines that are found when compare two files?
How to display no of records in oracle using unix command?
What is the behavioural difference between cmp and diff commands?
Which command is used to kill the last background job?
Describe the zip/unzip command using gzip.
What are bash commands?
What is the unix command to confirm a remote host is alive or not?
How to use grep command to list find the records of a file containing 10 different strings?
Which command will print your home directory on screen?
What does #!/ Bin sh do?
What is a command and examples?
What is the use of sed command in unix?
What are the dos commands?
What is .sh file?