Difference between revisions of "Parse objects and rules"
From cpwiki.net
(Pushed from Themanclub.) |
Latest revision as of 00:26, 26 February 2013
get object name for given UID
cat objects_5_0.C |grep -m 1 -B 2 2FD225F6-A25F-475C-934B-C0DC122A2FDC |grep -m 1 : | sed -e 's/://' | tr -d '(' | sed 's/^[ \t]*//'
get orig dst object UID from rulebases_5.0.fws
cat rulebases_5_0.fws | grep -A 3 "dst_adtr" | grep chkpf_uid | sed -e 's/("{//' | sed -e 's/}")//' | awk '{print $2}'