view contrib/tools/grep_fd_dict_dump @ 1469:48fa8d70e6ad

csv_to_fd: validate flags and other improvements Validate the flags. Allow more columns; ignore any past column 8 "Must Not". Add basename of filenames to the regen command.
author Luke Mewburn <luke@mewburn.net>
date Wed, 18 Mar 2020 11:40:01 +1100
parents 519c1a85dcd1
children 7d121fbf269a
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/p:[^ ]* //'
"Welcome to our mercurial repository"