Padding records to the longest record length

Pipelines v1.6

 

.* Example by TenFiftyTwo(c).

Home

 
.* The following pipeline reads the file: example.txt and for each input record, it produces
.* an output record that is as long as the length of the longest input record.
 
pipe < &installdrive:\&installpath\examples\input\example.txt .* Read input file.
     | snake 1 align left pad .   .* One output column; padded on the right (left aligned)..
                                  .* ..to the length of the longest record.
     | cons                       .* Display on the console.