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
What is the difference between awk and grep?
What is the use of find command in unix?
Write a command that will display files in the current directory, in a colored, long format.
What happens when we execute a unix command?
Which command can you use to find the currently running process in unix server?
How do you grep a case insensitive?
Why is it called grep?
What is the general format of unix command syntax?
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
Explain ‘system calls’ with respect to unix commands?
What are awk commands?
How do you repeat a command in terminal?
How does pipe () work?
How do I delete files from command prompt?
What is command statement?