what is the cmd to remove the comment lines from a file and
to display the original text without comments?
thanks in advance......
Answers were Sorted based on User's Feedback
Answer / susanta polley
sed -e 's/^#//g' input_filename > output_filename
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / deepak
sed -e 's/^#//g' -e 's/#//g' input_filename > output_filename
| Is This Answer Correct ? | 6 Yes | 5 No |
what is the function of grep command?
how to make IGNITE-BACKUP in HP-UX?
How many bits use for MAC address?
How can you copy files or directories?
What is “chmod” command?
What is a shell in Unix? Name some common Unix shells.
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
How to display a file name which has zero bytes in size.
describe the escaping sequence characteres in unix
What Command will remove a Directory in UNIX?
What is the unix command to confirm a remote host is alive or not?
How are UNIX file permissions represented?