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

Can you explain a little bit about command substitution?

600


What is the use of awk command in unix?

573


How does pipe () work?

587


Is it inbetween or in between?

574


What does touch command do in unix?

720






What is ‘ps’ command for?

609


How do you grep a case insensitive?

536


How does shebang work?

584


What is a bash command?

622


What is {} in find command?

576


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

575


What is the search command in unix?

595


What is the command to find maximum memory taking process on the server?

665


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

2028


What does 'mkdir' command do in UNIX?

654