File:  [Power 6/32 Unix Tahoe 4.2BSD] / cci / usr / src / usr.lib / learn / editor / L3.1c
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
When you actually edit a file,
the first thing the editor does before giving
you its ':' prompt is to tell you the name
of the file and the number of lines and
characters it contains.
If you edit a file that does not yet
exist, it will let you know
by printing the message "No such file or directory".
I'm going to put you in the editor
with a file a called "junk".  Leave
the editor with 'q'.  Do you know how many
characters there are in "junk"?
When you get the '%' type "answer N"
where N is the number.
#create junk
You're in the editor.
Type in the number of characters in this file.
#copyin
#pipe
ex +'set prompt noopt open' junk
#user
#unpipe
#uncopyin
#match 69
#log
#next
3.1b 5

unix.superglobalmegacorp.com

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