Mailinglist Archive: opensuse-security (457 mails)
| < Previous | Next > |
Grep uncomment lines from .conf
- From: Arie Reynaldi Zanahar <reyman@xxxxxxxxxxxx>
- Date: Thu, 12 Feb 2004 10:04:22 +0700
- Message-id: <200402121004.22368.reyman@xxxxxxxxxxxx>
Dear,
I want to grep lines that not commented from a file, Someone said that I can
use
$sed -e '/^[[:space:]]*#/d;/^[[:space:]]*$/d' file.conf
but I think it's too long, I have use
$egrep -v '^#' file.conf
but it containt so many blank lines. Is there any suggest what should I use ?
Maybe like combining egrep with other script.. As simple as possible :)
regards,
--
Arie Reynaldi Zanahar
reyman@xxxxxxxxxxxx
I want to grep lines that not commented from a file, Someone said that I can
use
$sed -e '/^[[:space:]]*#/d;/^[[:space:]]*$/d' file.conf
but I think it's too long, I have use
$egrep -v '^#' file.conf
but it containt so many blank lines. Is there any suggest what should I use ?
Maybe like combining egrep with other script.. As simple as possible :)
regards,
--
Arie Reynaldi Zanahar
reyman@xxxxxxxxxxxx
| < Previous | Next > |