harry.jede@arcor.de wrote:
#!/bin/sed -rf # Author: Harry Jede # produce human readable but still machine parseable # olcAccess lines and removes the ordering numbers in {} # because humans don't need them, really.
Nice formatting, but just a note - the ordering prefixes are there to allow you to insert new ACLs in the precise spot where they belong. So in fact, human or machine, they are necessary. We wouldn't throw things in there for no reason.
Otherwise, to insert one rule in front of existing rules, you would need to delete and reinsert all of the rules.