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 / deepak
sed -e 's/^#//g' -e 's/#//g' input_filename > output_filename
Is This Answer Correct ? | 6 Yes | 5 No |
Post New Answer View All Answers
How do I run a whois command?
Which command will print your home directory on screen?
Can you enlist some commonly used network commands?
What does grep v grep do?
What is the command to find maximum memory taking process on the server?
What is the use of the command 'ls -x chapter[1-5]' ?
What is the significance of the 'tee' command?
What is merge command in unix?
What does awk stand for?
What does the command '$ls | wc –l > file1' do?
Why is it called grep?
What command is used to check the current users?
What is the use of tee command?
Describe the zip/unzip command using gzip.
Who wrote grep?