#!/bin/awk -f

# Author: Igor Vlasenko <viy@altlinux.org>

BEGIN {                                                             
if (ARGV[1] == "-h" || $ARGV[1] == "--help") {
    delete ARGV[1]
     print "usage: filterpineconf <pine user/syctem config file>"
     print "example: filterpineconf ~/.pinerc"
     print "filters pine config file from comments, empty assigments, etc,"
     print "only showing parameters actually set up in config file."
     print "useful for understanding current pine configuration."
     exit
     }
}
/^\s*$/ {next}
/^\s*#/ {next}
/\=\s*$/{next}
{print $0}
