File:  [Power 6/32 Unix Tahoe 4.2BSD] / cci / usr / src / usr.lib / learn / editor / L20.2b
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Sun Jul 28 12:24:19 2019 UTC (7 years ago) by root
Branches: bsd, MAIN
CVS tags: v12b, v121, HEAD
Power 6/32 Unix version 1.2b

#print
There is an easier way to do that.  You can just say
   5c
   input text for new version
   .
using the 'c' command ('c' stands for 'change') which
will delete the old version of the line and
replace it.  Note that the input text after 'c' ends
with a '.' just like the text after the 'a' or 'i' commands.
This directory contains a file named "lineup".  Change
the third line to read "neal walk" and print the file
before and after.  Use a sequence like this, ending in ready:

ex lineup
1,$p
3c
neal walk
.
1,$p
wq
ready

#create Ref
walt frazier
earl monroe
neal walk
bill bradley
spencer haywood
#create lineup
walt frazier
earl monroe
john gianelli
bill bradley
spencer haywood
#user
#cmp lineup Ref
#log
#next
20.2c 5

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.