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

Explain mount and unmount command.

861


What do know about tee command?

841


What difference between cmp and diff commands?

974


What is the general format of unix command syntax?

1396


What is ctrl d?

820


What is time_t?

793


What is grep and how do you use it?

803


What does grep v do?

776


What is the difference between grep and grep?

814


What are the unix commands?

766


Which command is used to delete all files in the current directory and all its sub-directories?

966


What does sed command do in unix?

804


What does the metacharacter mean?

815


Explain ‘system calls’ with respect to unix commands?

809


What is unix command line?

829