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

What is the unix command to confirm a remote host is alive or not?

594


What is the use of find command in unix?

592


How do I find previous commands in unix?

607


What is the use of awk command in unix?

589


What does grep v do?

568






What is the difference between awk and grep?

567


What is the pipe command?

593


What do chown command do?

542


Differentiate cat command from more command.

590


What does the metacharacter mean?

620


Which command is used to copy files?

571


What is the use of finger command?

607


Describe the usage and functionality of the command rm –r * in unix?

833


What command is used to check the current users?

602


Who command in unix operating system?

669