[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
sed, grep question
- From: "Calvin Lam" <clamhm hotmail com>
- To: redhat-install-list redhat com
- Subject: sed, grep question
- Date: Tue, 27 Jun 2000 19:52:10 PDT
hi all,
I want to parse a configuration file which is full of comments to a output
file which contain the real "stuff" (i.e. strip off all the comment).
For instance, my file is as follows:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Comment with # at the very beginning
myvar=99 # comment at the end of the line
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To parse it to a file like:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
myvar=99
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I think it can be done by sed and/or grep. Please help.
Best Regards,
Calvin Lam
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]