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 mtime in find command?
Write a grep (or grep) command that selects the lines from a file that have exactly three characters.
What does the command ' $who | sort –logfile > newfile' do?
How to setup sudo, only can use for particular date & time only ( for solaris10 )
How do I delete files from command prompt?
what is the cmd to display the last exit status in UNIX?
What is clustering in HP and how it's work?
how to change a normal file into hidden file
what is the use of wild cards?
how to unzip the contents of the gzip file
Which command can you use to find the currently running process in unix server?
what is the command to get help on a UNIX terminal?