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
How do I run a bash script?
Explain ‘system calls’ with respect to unix commands?
what is the advaantage of each user having its own copy of the shell?
What is the command to find hidden files in the current directory?
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
What are the general commands in using unix os for a beginner?
Explain ‘library functions’ with respect to unix commands?
Which command is used to find whether the system is 32 bit or 64 bit?
Name the various commands that are used for the user information in unix.
Can you enlist some commonly used network commands?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
What are filter commands in unix?
How do you repeat a command in terminal?
What does grep v do?
How do I use grep to find a file?