fields2swvi

Package: WA2L/edrc 1.5.57
Section: Library Commands (3)
Updated: 10 November 2020
Index Return to Main Contents

 

NAME

fields2swvi - filter to format data stream with named swvi fields to swvi sequence

 

SYNOPSIS

edrc/bin/fields2swvi [ -h ]

stream | fields2swvi

fields2swvi < file

 

AVAILABILITY

WA2L/edrc

 

DESCRIPTION

The fields2swvi command is a filter that brings an unordered software inventory 'FIELD = VALUE' data stream into the correct sequence as understood by swvi(1).

This command is internally used by apply2sw_inventory(1).

 

OPTIONS

-h
usage message.

 

ENVIRONMENT

-

 

EXIT STATUS

0
no error.

4
usage displayed.

5
the command has been aborted pressing Ctrl+C.

 

FILES

-

 

EXAMPLES

1) Example input/output:

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

 

SEE ALSO

edrcintro(1), apply2sw_inventory(1) sw_inventory(4) sw_report(1), swvi(1),

 

NOTES

-

 

BUGS

-

 

AUTHOR

fields2swvi was developed by Christian Walther. Send suggestions and bug reports to wa2l@users.sourceforge.net .

 

COPYRIGHT

Copyright © 2020 Christian Walther

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.


 

Index

NAME
SYNOPSIS
AVAILABILITY
DESCRIPTION
OPTIONS
ENVIRONMENT
EXIT STATUS
FILES
EXAMPLES
SEE ALSO
NOTES
BUGS
AUTHOR
COPYRIGHT

This document was created by man2html using the manual pages.
Time: 16:52:58 GMT, August 28, 2024