Positioning text

Pipelines v1.6

 

.* Example by TenFiftyTwo(c).

Home

 
.* The following pipeline reads the file: example.txt and for each input record the
.* pipeline creates an output record of length 120 bytes, with the text centered and
.* padded left and right with periods (.).
 
pipe < &installdrive:\&installpath\Examples\Input\example.txt .* Read input file.
     | specs pad . 1-* 1.120 center                           .* 120 byte record, text is centered..
                                                              .* ..and padded left and right.
     | cons                                                   .* Display on the console.