File: getfromlist

package info (click to toggle)
installation-guide 20081208lenny1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 29,280 kB
  • ctags: 55
  • sloc: xml: 205,772; sh: 1,063; perl: 417; awk: 200; makefile: 71
file content (7 lines) | stat: -rwxr-xr-x 108 bytes parent folder | download | duplicates (12)
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