1 2 3 4 5 6 7
#!/bin/sh if [ -z "$1" ] || [ ! -f "$1" ] ; then exit 1 fi egrep -v "^[[:space:]]*(|#.*)$" $1 | cut -f 1