view contrib/tools/grep_fd_dict_dump @ 1562:6219359a36a9 default tip

Merge latest changes from proposed branch
author Sebastien Decugis <sdecugis@freediameter.net>
date Mon, 21 Jun 2021 19:08:18 +0800
parents 7d121fbf269a
children
line wrap: on
line source

#!/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/{dict(0x[^ ]*) : \(.*\)}/\1/' \
	-e 's/p:[^ ]* //'
"Welcome to our mercurial repository"