explode - produce a table of subparts and counts
SYNOPSIS
explode part_number count [ table ]
DESCRIPTION
explode
searches a parts
table
for
part_number
and prints all of its subparts, including all of the
subparts of its subparts.
It multiplies the number of parts
(count)
times the subpart
counts at each interaction so that the final subpart table
lists all of the subparts of the original part and the
total number of subparts needed to make the
count
number of
parts.
EXAMPLE
$ cat parttable
Part Subpart Count
---- ------- ------
10001 10010 3
10001 10020 4
10010 10100 2
10020 10100 5
To generate a subpart list and count for
two part 10001s:
$ explode 10001 2
Part Count
---- -----
10001 2
10010 6
10020 8
10100 52
SEE ALSO