← 返回命令列表

Linux command

ffe 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Extract fields from

ffe -c [config.ffe] [data.txt]

Output as a named print format

ffe -c [config.ffe] -p [csv] [data.txt]

Filter records matching an expression

ffe -c [config.ffe] -e [field=value] [data.txt]

Show structure information

ffe -c [config.ffe] -I

说明

ffe (Flat File Extractor) parses fixed-width and delimited flat files according to a structure definition provided in a configuration file. It extracts fields and can convert data to formats such as CSV or XML. Configuration files define record layouts with field names, widths, and types. The tool handles multiple record types in a single file, common in mainframe and batch-processing data formats.

参数

-c, --configuration _file_
Configuration file defining record structures and print formats.
-p, --print _format_
Select a named print format defined in the configuration file.
-o, --output _file_
Write output to the specified file instead of stdout.
-f, --field-list _fields_
Print only the listed fields (comma-separated).
-e, --expression _expr_
Print only records where the expression matches.
-a, --and
Combine multiple expressions with logical AND (default is OR).
-X, --casecmp
Use case-insensitive expression evaluation.
-v, --invert-match
Print only records that do not match the expression.
-r, --replace _field=value_
Replace field contents with the given value in output.
-l, --loose
Do not abort on invalid input lines.
-d, --debug
Write invalid input lines to `ffe_error_<pid>.log`.
-I, --info
Show structure information from the configuration file and exit.

FAQ

What is the ffe command used for?

ffe (Flat File Extractor) parses fixed-width and delimited flat files according to a structure definition provided in a configuration file. It extracts fields and can convert data to formats such as CSV or XML. Configuration files define record layouts with field names, widths, and types. The tool handles multiple record types in a single file, common in mainframe and batch-processing data formats.

How do I run a basic ffe example?

Run `ffe -c [config.ffe] [data.txt]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -c, --configuration _file_ do in ffe?

Configuration file defining record structures and print formats.