interesting idea: sedreg
tpot at samba.org
Sat Aug 27 00:41:04 GMT 2005
On Fri, 2005-08-26 at 13:19 -0500, Gerald (Jerry) Carter wrote:
> ...so I decided to rewrite the profiles tool to use the new
> regfio code (from the printmig.exe work). In the process I
> ran into a few sk_record bugs and cleaned them up. So
> the new profiles tool works and can replace arbitrary
> SIDs in ACLs on registry keys.
> The interesting thing was how easy this was. If anyone is
> interested, it would be really easy to create a sed-like tool
> for registry files :-) Not sure what this would be useful
> for but like I said I was bored.
> So Maybe one day you will get bored too and decide that
> you need a way to to bulk updates on keynames, or values,
> or merge 2 registry files, or whatever.....
How about something like the way ldbedit works? Convert the registry
file into a text file, edit it with vi/sed/perl/whatever and then
convert it back to binary form.
Text formats are great. I have been reading The Tao of Unix Programming
> I feel weird 'cause this was slightly fun.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20050827/9e949493/attachment.bin
More information about the samba-technical