ascii32-126.rex |
Pipelines v2.1 |
.....|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8....+....9....+....10... |
**** Top of file ****
1
2 /* The following pipeline displays the decimal, hexadecimal and binary values for each
3 of the ascii characters in the range 32-126. The output is displayed on the console
4 and written to the file: ascii.txt.
5
6 Address Rxpipe
7
8 'pipe (endchar ?)',
9 'literal x20-x7e', /* Generate a literal in the range 32-126. */
10 '| split before x20-x7e', /* Separate the literal into individual characters. */
11 '| specs recno from 32 1', /* Put record number in column 1.. */
12 '1-* c2x nw', /* ..its hexadecimal representation next.. */
13 '1-* c2b nw', /* ..followed by its binary representation.. */
14 '1-* nw', /* ..followed by the actual ascii character. */
15 '| a: drop 48', /* Drop 48 records.. */
16 '| j: specs select 1 1-* 1', /* Build a two column output record from.. */
17 'select 0 1-* nw', /* ..each of the two input streams. */
18 '| cons', /* Display on the console. */
19 '| > &sysdrive:\Documents and Settings\&username\My Documents\ascii.txt',
20 '?',
21 'a:',
22 '| elastic', /* Accept the first 48 records. */
23 '| j:' /* Route back to specs. */
24
25 Say 'Hit Enter to close..'
26 Parse Pull
27
28 Exit 0
**** End of file ****
|