#!/bin/awk -f # Author: Igor Vlasenko BEGIN { if (ARGV[1] == "-h" || $ARGV[1] == "--help") { delete ARGV[1] print "usage: filterpineconf " 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}