File:  [CSRG BSD Unix] / 43BSD / usr.lib / learn / editor / L18.1a
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:55 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43
BSD 4.3

#print
Sometimes it is desirable to add text before a
known line, rather than after it.  For this purpose
there is an 'i' (insert) command that places the new
material before the specified line. Otherwise, 'i'
is exactly like 'a', so that
  3i
is the same as
  2a
Remember the address of the last line?  Just
before the last line of file 'airlines'
insert the line

twa

and then rewrite the file with wq and type ready.
#create Ref
american
braniff
continental
delta
eastern
national
pan am
twa
united
#create airlines
american
braniff
continental
delta
eastern
national
pan am
united
#user
#cmp airlines Ref
#log
#next
19.1a 10

unix.superglobalmegacorp.com

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