Commands for TEd - A Tiny Editor

Command

Abbreviation

Purpose

append «text» a «text» Adds «text» at the end of the current line.
change /«old»/«new» c/«old»/«new» Changes «old» to «old» in the current line
change /«text» c/«text» Deletes «text» from the current line.
clear cl Deletes all lines.
del (none) Deletes the current line.
del «n» (none) Deletes line «n».
del * (none) Deletes the current line.
del «n» * (none) Deletes line «n» through the current line.
del «m» «n» (none) Deletes lines «m» through «n».
del * «n» (none) Deletes the current line through line «n».
insert i Inserts zero or more lines after the current line. Use single . to stop.
insert «text» i «text» Inserts a line consisting of «text» after the current line.
list l Lists all lines in the buffer.
list «n» l «n» Lists line «n».
list * l * Lists the current line.
list «n» * l «n» * Lists line «n» through the current line.
list «m» «n» l «m» «n» Lists lines «m» through «n».
list * «n» l * «n» Lists the current line through line «n».
«n» (none) Same as list «n».
«n» «text» (none) Changes line «n» to «n».
open «name» o «name» Opens a file named «name».
quit q Quits TEd.
read «name» r «name» Inserts file named «name» after current line.
write w Writes buffer to current file.
write «name» w «name» Writes buffer to file named «name».

Copyright © 1999,2000,2001 Smart Software Consulting