X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=bin%2Fkhatus_parse_fan_file;fp=bin%2Fkhatus_parse_fan_file;h=120e150080d297f715c883f1d39d87bd995c7dea;hb=75b23ff8a814c76a4fa0fa12a40e6a929beec695;hp=0000000000000000000000000000000000000000;hpb=7a2b16ba7175f07e0ae54e0527475c75e8cc1210;p=khatus.git diff --git a/bin/khatus_parse_fan_file b/bin/khatus_parse_fan_file new file mode 100755 index 0000000..120e150 --- /dev/null +++ b/bin/khatus_parse_fan_file @@ -0,0 +1,13 @@ +#! /usr/bin/awk -f + +BEGIN { + OFS = msg_fs ? msg_fs : "|" + Kfs = key_fs ? key_fs : ":" +} + +{ + key = $1 + sub(":$", "", key) + val = $2 + print(key, val) +}