Translating characters

Pipelines v1.6

 

.* Example by TenFiftyTwo(c).

Home

 
.* The following pipeline reads the file: example.txt; builds a translate table and applies that
.* table against each input record. The translate table converts each of the ASCII characters
.* 'a' through 'j' to the corresponding characters 'A' through 'J'. The example selectively converts
.* the specified range of characters from lowercase to uppercase.
 
pipe < &installdrive:\&installpath\Examples\Input\example.txt .* Read input file.
     | translate 1-* a-j A-J                                  .* Specify the table, and translate.
     | cons                                                   .* Display on the console.