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 / susanta polley
sed -e 's/^#//g' input_filename > output_filename
Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
What is grep and how do you use it?
What does #!/ Bin sh do?
Why is grep called grep?
What is used to type command?
What is difference between grep and find command in unix?
How does pipe () work?
What are awk commands?
Does cp command overwrite files?
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
Which command will print your home directory on screen?
What are the commands in UNIX to list the files in a Directory?
What is updatedb?
How to use grep command to list find the records of a file containing 10 different strings?
Which command is used to find whether the system is 32 bit or 64 bit?
How do I search for text in vi?