paketecuento
Technical User
Hi,
I was trying to build some kind of filter for files containing commented lines (those starting wiht ";"). The problem arises when some of these lines are indented. For example:
-------------------------------------
foo.conf
;hello
variable=12 ;some comment
;comment indented
[section]
;var=5 ;another comment
type=friend
--------------------------------------
So I expect the final result as:
variable=12 ;some comment
[section]
type=friend
any suggestion??
regards, paco
I was trying to build some kind of filter for files containing commented lines (those starting wiht ";"). The problem arises when some of these lines are indented. For example:
-------------------------------------
foo.conf
;hello
variable=12 ;some comment
;comment indented
[section]
;var=5 ;another comment
type=friend
--------------------------------------
So I expect the final result as:
variable=12 ;some comment
[section]
type=friend
any suggestion??
regards, paco