21.07.2015 Views

GAWK: Effective AWK Programming

GAWK: Effective AWK Programming

GAWK: Effective AWK Programming

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

252 <strong>G<strong>AWK</strong></strong>: <strong>Effective</strong> <strong>AWK</strong> <strong>Programming</strong>-[vF])opts="$opts $1 ’${2?’missing operand’}’"shift;;-[vF]*) opts="$opts ’$1’" ;;-f)-f*)program="$program$n@include ${2?’missing operand’}"shift;;f=‘expr "$1" : ’-f\(.*\)’‘program="$program$n@include $f";;-[W-]file=*)f=‘expr "$1" : ’-.file=\(.*\)’‘program="$program$n@include $f";;-[W-]file)program="$program$n@include ${2?’missing operand’}"shift;;-[W-]source=*)t=‘expr "$1" : ’-.source=\(.*\)’‘program="$program$n$t";;-[W-]source)program="$program$n${2?’missing operand’}"shift;;-[W-]version)echo igawk: version 2.0 1>&2gawk --versionexit 0 ;;-[W-]*) opts="$opts ’$1’" ;;*) break;;esacshiftdoneif [ -z "$program" ]thenprogram=${1?’missing program’}shiftfi# At this point, ‘program’ has the program.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!