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 / sandip

sed '/^#/d' filename

Is This Answer Correct ?    9 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I search a whole word in vim?

691


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

581


What is the difference between cat command and more command?

599


What is grep command in unix with examples?

604


What does pipe () return?

592






How do you repeat a command in terminal?

587


What is a command and examples?

583


What is grep and how do you use it?

575


Are you in or at the office?

611


What is command substitution?

623


What is the use of the command 'ls -x chapter[1-5]' ?

659


Write a command to kill the last background job?

618


how to sort the content of the file based on numeric values

1250


What is grep r?

591


Enlist some filename manipulation commands in unix.

549