Mercurial > hg > freeDiameter
view contrib/tools/grep_fd_dict_dump @ 1461:a86eb3375b95
add csv_to_fd, org_to_csv tools
csv_to_fd converts CSV files containing RADIUS or Diameter AVP tables
into various formats, including freeDiameter C code and JSON documents.
org_to_csv converts org files into CSV files, suitable for csv_to_fd.
author | Luke Mewburn <luke@mewburn.net> |
---|---|
date | Mon, 09 Mar 2020 21:24:24 +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:[^ ]* //'