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 the difference between awk and grep?

558


What is the use of find command in unix?

578


Write a command that will display files in the current directory, in a colored, long format.

683


What happens when we execute a unix command?

597


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

586






How do you grep a case insensitive?

538


Why is it called grep?

557


What is the general format of unix command syntax?

691


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

797


Explain ‘system calls’ with respect to unix commands?

600


What are awk commands?

582


How do you repeat a command in terminal?

587


How does pipe () work?

593


How do I delete files from command prompt?

549


What is command statement?

541