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

#print
Often you want to refer to the last line
of the file.  You don't have to know the number
of lines in the file to do that; there
is a special address, "$", that always
refers to the last line.  So you
can print the last line of a file with $p;
try that, then type w, q and ready as usual.
#create Ref
:This is the end of the file and the line you should print.
:"file" 3 lines, 95 characters
#create file
 don't print this line
 or this one
This is the end of the file and the line you should print.
#copyout
#pipe
ex +'set prompt noopt open' file
#user
#unpipe
#uncopyout
tail -2 .ocopy >X1
#cmp X1 Ref 2
#log
#next
10.3b 5
10.3c 10

unix.superglobalmegacorp.com

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