[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
custom config processing
From: |
Sam Steingold |
Subject: |
custom config processing |
Date: |
Tue, 16 Mar 2010 16:16:51 -0400 |
User-agent: |
Thunderbird 2.0.0.22 (X11/20090625) |
Is there a way to add custom config file processing to config.status?
specifically, I want to insert a custom line _before_ each line matching my
regexp.
i.e.,
$ sh config.status foo
should generate foo as usual and then do
sed -i 's/ZZZ/AAA\n/ p' foo
(or whatever -- what?! -- should be done to transform
===
a
ZZZ
b
===
to
===
a
AAA
ZZZ
b
===)
thanks.
- custom config processing,
Sam Steingold <=