Suppose there is a shell function called getfield that takes the field name as argument and writes the corresponding field (or collum) number on the standard output.