padding-records.rex |
Pipelines v2.1 |
.....|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8....+....9....+....10... |
**** Top of file ****
1
2 /* The following pipeline reads the file: flann.txt and for each input record, it produces
3 an output record that is at least 95 bytes long. If the input record is more than 95 bytes
4 long, the output record is unchanged. */
5
6 Address Rxpipe
7
8 'pipe < &installdrive:\&installpath\examples\input\flann.txt',
9 '| take 16', /* Select the first 16 records. */
10 '| pad 95 #', /* Pad the record with hashes. */
11 '| cons' /* Display on the console. */
12
13 Say 'Hit Enter to close..'
14 Parse Pull
15
16 Exit 0
**** End of file ****
Console
output |
.....|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8....+....9....+....10...
1 THE LONG and unprecedented conversation I had with Policeman MacCruiskeen after I##############
2 went in to him on my mission with the cigarette brought to my mind afterwards several##########
3 of the more delicate speculations of de Selby, notably his investigation of the nature#########
4 of time and eternity by a system of mirrors. His theory as I understand it is##################
5 as follows;####################################################################################
6 ###############################################################################################
7 If a man stands before a mirror and sees in it his reflection, what he sees is not a###########
8 true reproduction of himself but a picture of himself when he was a younger man.###############
9 de Selby's explanation of this phenomenon is quite simple. Light, as he points out#############
10 truly enough, has an ascertained and finite rate of travel. Hence before the reflection########
11 of any object in a mirror can be said to be accomplished, it is necessary that rays of#########
12 light should first strike the object and subsequently impinge on the glass, to be##############
13 thrown back again to the object - to the eyes of a man, for instance. There is#################
14 therefore an appreciable and calculable interval of time between the throwing by a man#########
15 of a glance at his own face in a mirror and the registration of the reflected image in#########
16 his eye.#######################################################################################
17 Hit Enter to close..
|