NAME

     getnum  - get value from a text file of numbers


SYNOPSIS

     getnum [ file name ] [ line number ] [ field number ]


DESCRIPTION

     getnum extracts from a text file of numbers a specified line
     and  from  that  line  a  specified  field (where fields are
     separated by blanks) and writes the result to stdout


EXAMPLE OF USE IN A SCRIPT

     #!  /bin/csh

     #  This is a script to test program getnum

     #  The aim of this is to be able to extract a specific value

     #  from a text file.  The output is to stdout

     #  Example 1:  extract third value from fourth line of file

     #              junk

     @ value = `getnum junk 4 3`

     echo "value= "$value


BUGS

     unknown


SEE ALSO

     getval, scan


AUTHOR

     Paul Gutowski, TRC x 3146


COPYRIGHT

     copyright 2001, Amoco Production Company
               All Rights Reserved
          an affiliate of BP America Inc.












Man(1) output converted with man2html