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
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
what is the advaantage of each user having its own copy of the shell?
Which command is used to delete all files in the current directory and all its sub-directories?
Who command in unix?
What does 'mkdir' command do in UNIX?
Write a command to kill the last background job?
How do I run a bash script?
What is the use of the tee command?
What is the difference between cat and more command?
Which command is used to kill the last background job?
How do I search a whole word in vim?
Describe the usage and functionality of the command rm –r * in unix?
What does find command return in unix?
What is the use of finger command?
What is s and g in sed command?