Cut
Remove columns from input records. Use this component when you want to reduce the number of columns.
- Cut
-
is to be used in EVS job structure definition file.
<f_in>
and<f_out>
are either input and output file or flow name. - evl cut
-
is intended for standalone usage, i.e. to be invoked from command line and read records from standard input and write to standard output.
EVD is EVL data definition file, for details see evl-evd(5).
Synopsis
Cut <f_in> <f_out> (<evd_in>|-D <inline_evd) (<evd_out>|-d <inline_evd>) [--validate] [-x|--text-input] [-y|--text-output] evl cut (<evd_in>|-D <inline_evd) (<evd_out>|-d <inline_evd>) [--validate] [-x|--text-input] [-y|--text-output] [-v|--verbose] evl cut ( --help | --usage | --version )
Options
- -D, --input-definition=<inline_evd>
-
either this option or the file <evd_in> must be presented. Example: -D ’id int, user_id string’
- -d, --output-definition=<inline_evd>
-
either this option or the file <evd_out> must be presented. Example: -d ’user_sum long’
- --validate
-
without this option, no fields are checked against data types. With this option, all output fields are checked
- -x, --text-input
-
suppose the input as text, not binary
- -y, --text-output
-
write the output as text, not binary
Standard options:
- --help
-
print this help and exit
- --usage
-
print short usage information and exit
- -v, --verbose
-
print to stderr info/debug messages of the component
- --version
-
print version and exit
Examples
print to stdout only not-nullable integer field ’id’:
evl cut example.evd -d'id int' -xy <in.txt