Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
a.dis | HD | 22-Dec-2006 | 4.2 KiB | |||
c.dis | HD | 22-Dec-2006 | 4.4 KiB | |||
d.dis | HD | 22-Dec-2006 | 314 | |||
e.dis | HD | 22-Dec-2006 | 3.9 KiB | |||
g.dis | HD | 22-Dec-2006 | 4.5 KiB | |||
guide | H A D | 22-Dec-2006 | 134 | 5 | 4 | |
i.dis | HD | 22-Dec-2006 | 4.2 KiB | |||
p.dis | HD | 22-Dec-2006 | 4.6 KiB | |||
pipe.dis | HD | 05-Jun-2013 | 6.2 KiB | |||
readme | H A D | 22-Dec-2006 | 1.1 KiB | 32 | 29 | |
x.dis | HD | 22-Dec-2006 | 4.9 KiB |
readme
1The programs collected in /acme/edit offer a sam-like command interface 2to acme windows. The guide file 3 /acme/edit/guide 4holds templates for several editing operations implemented 5by external programs. These programs, composed in 6a pipeline, refine the sections of a file to be modified. 7Thus in sam when one says 8 x/.*\n/ g/foo/ p 9in /acme/edit one runs 10 x '/.*\n/' | g '/foo/' | p 11The e command, unrelated to e in sam, disambiguates file names, collects 12lists of names, etc., and produces input suitable for the other tools. 13For example: 14 e '/usr/rob/acme:0,$' | x /oldname/ | c /newname/ 15changes oldname to newname in all the files loaded in acme whose names match 16the literal text /usr/rob/acme. 17 18The commands in /acme/edit are 19 e 20 x 21 g 22 c 23 d 24 p 25 pipe (like sam's | , which can't be used for syntactic reasons) 26 27p takes a -n flag analogous to grep's -n. There is no s command. 28e has a -l flag to produce line numbers instead of the default character numbers. 29Its implementation is poor but sufficient for the mundane job of recreating 30the occasional line number for tools like acid; its use with the other commands 31in this directory is discouraged. 32