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

grep -v '#' input_filename > output_filename

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is awk good for?

677


What is the use of cut command in unix?

809


What is the comma to show the space allocation of files?

639


What is the search command in unix?

678


What happens when we execute a unix command?

694






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

883


Who command in unix?

680


How do I open a port?

662


What does awk stand for?

682


Can you explain a little bit about command substitution?

709


What do know about tee command and its usage?

703


What do chmod command do?

682


Who invented grep?

737


Which command can you use to find the currently running process in unix server?

673


What difference between cmp and diff commands?

819