KEDIT Q & A: How can I append text to each line of a file without repeatedly pasting?

Q: I need to append some text to every line in a large file. Is there a better way than repeatedly pasting the text?

A: Using a combination of the CAPPEND command and the REPEAT command can speed the process considerably. Say you have a file like this:

Position the current line to be the first line of the file. Now issue this CAPPEND command from the command line:

cappend "

The CAPPEND command (Column APPEND) will append the text you specify to the end of the current line. This particular command results in this:

If you now issue this command:

repeat *

The CAPPEND command is repeated for each line in the file, resulting in this:


KEDIT Home Page
KEDIT Versions and Features | Download Libraries | Maintenance Releases
Ordering/Licensing | Demo Version | Technical Support | What's New