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 |
How do I use grep to find a file?
How many unix commands are there?
What does 'mkdir' command do in UNIX?
In vi editor how do you execute unix commands?
How do I clear my terminal history?
what is Online(STM) and offline diagnostics in HP-UX?
How do you list the files in an UNIX directory while also showing hidden files?
in UNIX,How do you check for processes started by particular user suppose the user name is 'suresh'?
What command is used to switching between users in unix?
What are file commands?
How do I delete files from command prompt?
Write a command to find all of the files which have been accessed within the last 30 days.
5 Answers Google, IBM, Satyam,