Name
Date
Size
#Lines
LOC

..--

a.disHD22-Dec-20064.2 KiB

c.disHD22-Dec-20064.4 KiB

d.disHD22-Dec-2006314

e.disHD22-Dec-20063.9 KiB

g.disHD22-Dec-20064.5 KiB

guideH A D22-Dec-2006134 54

i.disHD22-Dec-20064.2 KiB

p.disHD22-Dec-20064.6 KiB

pipe.disHD05-Jun-20136.2 KiB

readmeH A D22-Dec-20061.1 KiB3229

x.disHD22-Dec-20064.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