File: findVars

package info (click to toggle)
spong 2.7.7-19
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,880 kB
  • ctags: 1,224
  • sloc: perl: 6,640; sh: 2,247; makefile: 237
file content (10 lines) | stat: -rwxr-xr-x 233 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
SCRIPT=`basename $0`
die() {
   echo "Usage: $SCRIPT FILE"
   echo "$*"
   exit 1
}
[ $# -eq 1 ] || die "Found $# ARGS not 1"
[ -f $1 ] || die "No FILE $1"
grep "@@" $1 | sed -e 's/[^@]*@@//' -e 's/@@[^@]*//' | sort | uniq