# HG changeset patch # User Luke Mewburn # Date 1582784247 -39600 # Node ID 519c1a85dcd1dda8310d35c63ad322b56796cbc2 # Parent ab7cb954f17e40f52ce7e9249638afa896d34bb1 grep_fd_dict_dump: add tool Add tool grep_fd_dict_dump: Grep stdin for the output of fd_dict_dump() and reformat to remove pointer addresses. Use to post-process the output of dict_dump.fdx into a format that's diff-able between freeDiameter invocations. diff -r ab7cb954f17e -r 519c1a85dcd1 contrib/tools/grep_fd_dict_dump --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contrib/tools/grep_fd_dict_dump Thu Feb 27 17:17:27 2020 +1100 @@ -0,0 +1,10 @@ +#!/bin/sh + +# Grep stdin for the output of fd_dict_dump() and reformat to remove +# pointer addresses. Use to post-process the output of dict_dump.fdx +# into a format that's diff-able between freeDiameter invocations. + +egrep '^ *{dict|VENDOR|APPLICATION|TYPE|ENUMVAL|AVP|COMMAND|RULE' \ + | sed \ + -e 's/{dict.*}(@0x[^ ]*): //' \ + -e 's/p:[^ ]* //'