File: getfromlist

package info (click to toggle)
installation-guide 20170614
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 36,272 kB
  • ctags: 71
  • sloc: xml: 45,831; sh: 1,371; perl: 427; awk: 199; makefile: 118; python: 101
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