csync-git
[mirrors/ArchLinux-Packages.git] / dnssec-root-zone-trust-anchors / anchors2ds.sed
1 #!/bin/sed -f
2 # anchors2ds.sed - (C)opyright Thomas Mudrunka <tomas.mudrunka@gmail.com> (2010) - All rights waived
3 # This SED script converts trust anchors supplied by IANA in XML format to DS format usable by most applications.
4 :a;$!N;s/\n//g;ta;
5 s/<?xml [^<]*//g;s/<TrustAnchor[^<]*<Zone>\([^<]*\)<\/Zone>[^<]*<[^<]*<KeyTag>\([^<]*\)<\/KeyTag>[^<]*<Algorithm>\([^<]*\)<\/Algorithm><DigestType>\([^<]*\)<\/DigestType>[^<]*<Digest>\([^<]*\)<\/Digest><\/KeyDigest><\/TrustAnchor>/\1 DS \2 \3 \4 \5\n/g
This page took 0.368479 seconds and 4 git commands to generate.