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


Please Help Members By Posting Answers For Below Questions

How do I run a bash script?

671


Explain ‘system calls’ with respect to unix commands?

681


what is the advaantage of each user having its own copy of the shell?

2147


What is the command to find hidden files in the current directory?

691


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

883






What are the general commands in using unix os for a beginner?

680


Explain ‘library functions’ with respect to unix commands?

701


Which command is used to find whether the system is 32 bit or 64 bit?

715


Name the various commands that are used for the user information in unix.

638


Can you enlist some commonly used network commands?

681


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

759


What are filter commands in unix?

636


How do you repeat a command in terminal?

705


What does grep v do?

643


How do I use grep to find a file?

666