stream | fields2swvi
fields2swvi < file
This command is internally used by apply2sw_inventory(1).
The input sequence is not important, but only known FIELDS are printed, unknown FIELDS are ignored.
Input:
cat <<EOM | fields2swvi VERSION = 1.5.02 SOFTWARE = EDRC - Enterprise Disaster Recovery Console INST_USER = root INST_GROUP = root RUN_USER = RUN_GROUP = CFG_DIR = etc VAR_DIR = var LICENSE = GNU GPL LIC_MGMT = WEB = DOC = ~edrc/doc/edrc_manpages-1.5.02.pdf INST_SRC = $Pkgfile PRODUCT = System INSTANCE = COMMENT = disaster recovery and system administration EOM
Output:
EDRC - Enterprise Disaster Recovery Console 1.5.02 root root etc var GNU GPL ~edrc/doc/edrc_manpages-1.5.02.pdf $Pkgfile System disaster recovery and system administration y y
This is free software; see edrc/doc/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.