3.3 cgl: listing files

The cgl tool filters CGNS files and gives some information about the file itself and its contents. The contents taken into account are special attributes. Thus, the use of such a tool is reserved to people adding such attributes, unless you modify cgl to fit your needs.

Attributes are searched into /.*/Attributes nodes, i.e. in nodes named Attributes below any base node. The attributes are descriptors, and the cgl tool expects hard coded attributes such as: .Classification, .Origin, .Topology, .Config...

Again, this tools is more a demo than an actually usable tool for everybody. Many informations can be retrieved without specific attributes (topology, number of zones...).

> cgl -h

usage: cgl [options] [files]

options:
 -a      Alias for options -m -x -o -c
 -x      Classification
 -o      Origin
 -c      Configuration
 -T      Title
 -s      File size
 -u      File owner (no group)
 -d      File date (modification)
 -m      origin mesh file(s) name(s)

>cgl -oTcsxd *
     ?             122880  Nov 07 16:11:14  5blocks.cgns
     ?             491520  Nov 14 17:40:28  SquaredNozzle-05-I.cgns
     ?             626688  Nov 14 17:40:32  SquaredNozzle-05-R.cgns
  8  *  unknown    491520  Nov 14 17:11:01  SquaredNozzle-05.cgns    
     ?            5042176  Nov 07 16:12:07  bump.cgns
     ?            2281472  Nov 07 16:11:33  jet.cgns
 60  *    ONERA   5910528  Nov 14 17:01:50  m6.cgns                  M6 Wing
     ?             110592  Nov 14 17:01:50  naca0012.cgns
     ?             348160  Nov 14 17:01:50  sphere_cube.cgns
     ?             176128  Nov 07 16:11:38  tut21.cgns
  8  *  unknown    389120  Nov 14 17:11:01  z234                     Squared Nozzle