DELETE

Syntax

── DELETE ─┬─<sequence range list>─┬───────────────────────────────────┤
           └─ ALL ─────────────────┘

Explanation

The DELETE command causes the lines specified in the <sequence range list> construct to be deleted from the work file. If DELETE ALL is entered, the contents of the work file are deleted, but the title and other attributes are preserved. If the work file is unnamed, it is removed by the DELETE ALL form.

Examples

L
1000 LINE1
2000 LINE2
3000 LINE3
4000 LINE4
5000 LINE5
6000 LINE6
#

DELETE 1000
#

L
2000 LINE2
3000 LINE3
4000 LINE4
5000 LINE5
6000 LINE6
#

DELETE 2500-3000,5000-END
#

L
2000 LINE2
4000 LINE4
#