[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: feature suggest: ability to load/add _inverted_ table file

On Mon, Dec 20, 2004 at 11:19:19AM +0700, Ilya A. Kovalenko wrote:
>   Feature to load/add address list from file onto table in INVERTED
> form (i.e. replacing "A.B.C.D" -> "! A.B.C.D" & vice versa) from
> table rule (sth. like "file-inverted <name>") and command line
> (sth. like -T add-inverted/load-inverted).
You could use sed(1) to do that, like
  # sed -e 's/^/!/' -e 's/^!!//' file | pfctl -t foo -Ta -f -