next previous up contents index
Next: CHANGE Previous: CCOPY Up: The Commands in Detail



CDELETE   [(l1 [l2])] c1 c2 [n|ALL]
CD
CDELETE means column delete, i.e. it deletes columns of a line. deletes the column 5 of the current line, deletes columns 5 to 10 of the current line. When deleting columns, the characters to the right side of the deleted area are moved to the left into the now empty area. Note that even if you want to delete only 1 column, you have to specify both the beginning and ending column of the area to be deleted.

By specifying a number n as last parameter you can achieve that the columns in n lines starting with the current one are deleted. If there are not enough lines in the workfile, the command terminates and you receive the message:

Instead of the number n of lines to be deleted you could also specify the parameter ALL, which determines that all the specified columns are to be deleted in all lines of the workfile.

Instead of a number in the last parameter, you can specify the area of lines for which the deletion is to be executed. To do so the first parameter has to be the line numbers enclosed in parentheses. You can use explicit or symbolic line numbers:

This means that the columns 5 to 10 of all lines from the first one to the line number 1200, both lines inclusively, will be deleted.

The specification of line numbers and of an amount of lines exclude each other.

If you specify only one line number within the parentheses, the second number is assumed to equal the first.


next previous up contents index
Next: CHANGE Previous: CCOPY Up: The Commands in Detail