Append file commands for Unix & ex/vi

romwa at utcs.uucp romwa at utcs.uucp
Tue Jan 13 14:51:27 AEST 1987


The simplest way I know of to write a range of text out to
the end of another file is:

1) Bring up last line mode (the colon).
2) Type "n,nw !cat >> filename"

where "n,n" is the line range of text to be written.

I believe this is a not-to-obvious feature of vi.

Mark T. Dornfeld
Royal Ontario Museum
Toronto, Ontario

utcs!rom!mark



More information about the Comp.unix.questions mailing list