Say if you need to make a firewall script to block certain ports this works great.
for ports in 21 25 443; do
iptables rules here
done