
29 May
2012
29 May
'12
19:48
On Tue, May 29, 2012 at 4:44 PM, Brian K. White <brian@aljex.com> wrote:
You don't need awk or anything but the same shell that's already executing the script.
GetVal () { DONE=false until $DONE ; do IFS=: read KEY VAL junk || DONE=: [[ "$KEY" == "$1" ]] && { echo $VAL ; DONE=: ; } done < $2 }
Isn't that bash-specific? Don't spec scripts have to be more generic (sh-compatible)? -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org