There is one thing. Now. This function:
flag() {
man "$1" | grep -- "$2";
}
It works like this:
$ flag iptables -t
iptables [-t table] {-A|-C|-D} chain rule-specification
ip6tables [-t table] {-A|-C|-D} chain rule-specification
iptables [-t table] -I chain [rulenum] rule-specification
iptables [-t table] -R chain rulenum rule-specification
iptables [-t table] -D chain rulenum
iptables [-t table] -S [chain [rulenum]]
iptables [-t table] {-F|-L|-Z} [chain [rulenum]] [options...]
iptables [-t table] -N chain
iptables [-t table] -X [chain]
iptables [-t table] -P chain target
iptables [-t table] -E old-chain-name new-chain-name
target = -j targetname [per-target-options]
-t, --table table
This is the default table (if no -t option is passed). It
iptables -t nat -n -L
Well, the last two lines are destroyed.
Anyhow, do you know how to add it to your .bashrc.bashrc? DoOr do you wantprefer it as a script to your ~/bin?