NAME

Rule of Three


SYNOPSIS

perl gus_rule-of-three.pl [filepath] [prefix]


DESCRIPTION

Create an MTS sequence file for MPT Road Surface Output process.


INPUT FILES

One input file can serve for any number of output files. A blank line delimits output files. Each non-blank line is ordered thus: FILE TAB COUNT. Refer to the example input file ./rule-of-three.dat included on the download page. Run the script with that as input to see five *.seq files created therefrom.


PREFIXES

Suppose, for example, you have a large, common *.RSP file of many channels. Subsets of those channels might be for various components. One would break up this into sub-files for each component. But the same rule-of-three sequence would be played back for each. Using prefixes, one may employ the same input *.dat file to generate any number of unique *.seq files by using file-name prefixes.


OUTPUT FILES

Output files are generated always in the same directory as the input file. Two output files will be generated. The file *_rule-of-three_??.seq is the actual sequence file. The file *_rule-of-three_??_totals.dat is for error checking so that you may cross check your sequence against what is desired without any needless tedium.


AUTHOR

Gan Uesli Starling <gan@starling.us>


COPYRIGHT

Copyright (c) 2005, Gan Uesli Starling. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


SCRIPT CATEGORIES

Misc