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 the use of the tee command?
Which command will print your home directory on screen?
What does awk stand for?
How do I use nslookup?
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
How do I use grep to find a file?
Name the various commands that are used for the user information in unix.
What is the use of finger command?
Explain command to display different lines that are found when compare two files?
Why is it called grep?
What is command substitution?
What is ‘ps’ command for?
What is the use of cut command in unix?
What is the use of sed command in unix?
What is grep short for?