|
Deleting words |
Pipelines v2.0 |
/* Example by TenFiftyTwo(c). */ |
/* The following pipeline reads the file: example.txt and deletes the word 'the' from any record that contains the word. Note. The search for the word 'the' is not case sensitive, and any combination of uppercase and lowercase characters that spell the word will match, for example the following words both match: 'The' and 'tHe'. */ Address Rxpipe 'pipe (stagesep ! reg 3)', '< &installdrive:\&installpath\Examples\Input\example.txt', '! change anycase reg /the|the\s/ //', /* Delete the word 'the'. */ '! console' /* Display on the console. */ Say 'Hit Enter to close..'Parse Pull Exit 0