Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.stsci.edu/spst/lrpg/man_txt/mabe.txt
Дата изменения: Fri Apr 8 22:30:26 2011
Дата индексирования: Sat Mar 1 08:51:36 2014
Кодировка:



User Commands MABE(1)



NAME
mabe - match fields on 'after', 'before', and 'equals' cri-
teria


SYNOPSIS:
mabe -f -[a|g|G|b|l|L|e|n] -{i
} -{v|x (verbose modes)} -{s tor| defaault whitespace>}


INTRODUCTION:
This program filters the content of a flat file based upon
the input filtering criteria. The user may choose which
field is being checked and how the field is to be filtered.


Program name: mabe (Match After/Before/Equals) ...test
fields from stdio/file and print if pass.

Usage: mabe -f -[ag|bl|e|n]
-{s } -{i
} -{xv}

Options and command-line parameters:

Required: -f : followed by the numerical field
number upon which to match.

Optionally required (must chose one of the following): -a or
-g : use a 'greater than' comparison operator on the
following string or regular expression. -G : use a
'greater than or equal to' comparison operator on the fol-
lowing string or regular expression. -b or -l : use a
'less than' comparison operator on the following string or
regular expression (dbl quoted). -L : use a 'less than
or equal to' comparison operator on the following string or
regular expression (dbl quoted). -e : use an
'equal to' comparison operator on the following string or
regular expression (dbl quoted). -n : use a 'not
equal to' comparison operator on the following string or
regular expression (dbl quoted).

Optional: -i : followed by input file name.
Alternative is to pipe records in by standard input. -v or
-x : verbose modes (debugging). -s : followed
by the alternative field separator character upon which to
divide input strings (def white sp).

Usage examples:

unixprompt> cat /home/lrp/current_available_list.rpt | mabe



SunOS 5.10 Last change: 15 Jun 2009 1






User Commands MABE(1)



-f 6 -b 7.231 unixprompt> mabe -i
/home/lrp/current_available_list.rpt -f 6 -b 7.231




NOTES AND CAUTIONS:
Initially implemented as a unix bash shell script and a
wrapper around awk.


BUGS:
REVISION HISTORY:
# 07-07-01 1.0 ij written beta # 07-07-
27 1.1 ij increase options and provide usage info.
# 07-08-01 1.2 ij workaround awk bug in
purenumeric/ascii comparisons using the same conditional.
# 08-02-05 1.3 ij switch from 'which' to 'type' for
within-shell awk check and prevent spss login. # 08-07-
29 1.4 ij add -G and -L comparison operators.



CALLS USED:
awk


AUTHOR
i. jordan


























SunOS 5.10 Last change: 15 Jun 2009 2