From dc5186d4daba188727873f4680c9a838fb9513b3 Mon Sep 17 00:00:00 2001 From: handa Date: Wed, 27 Aug 2003 00:19:03 +0000 Subject: [PATCH] *** empty log message *** --- utils/dbdata.awk | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 utils/dbdata.awk diff --git a/utils/dbdata.awk b/utils/dbdata.awk new file mode 100644 index 0000000..be6fd3f --- /dev/null +++ b/utils/dbdata.awk @@ -0,0 +1,19 @@ +BEGIN { + print "/***"; +} + +/".*\.(tbl|mim|tab|flt)"/ { + FROM=match($0, "\".*\.(tbl|mim|tab|flt)\"") + 1; + LEN=RLENGTH-2; + FILE=substr($0, FROM, LEN); + system("sed -n '/^[;#][;#]*
  • /,/^$/s/^[;#][;#]* *//p' "FILE); + printf "\n"; +} + +/^;; / { + print substr($0, 4); +} + +END { + print "*/"; +} -- 1.7.10.4