Cnsinfo
Copyright 2001 Stephen Graham
Synopsis
Extracts parameters (input variables) from a CNS input (.inp)
file. A small bash script with some awk and sed
thrown in. Works by matching the pattern '{===>}' that appears
at the start of every line, and that each parameter (single and multi-line
entries) ends with ';'. Should run on any computer with
bash, awk and sed. Note that as it uses
bash, it will only run on the bears.
Usage
$ cnsinfo <file_1.inp> [<file_2.inp> ...]
where <file_x.inp> is a CNS input file.
Any number of files may be processed. Output is directed to stdout.
I reccomend using in conjunction with mpage and redirecting output
to lpr. Example:
$ cnsinfo *_xxx.inp | mpage -o -bA4 -4 | lpr
Download
Latest version last modified 20/7/01 and available here.