File:  [CSRG BSD Unix] / 43BSDReno / usr.bin / learn / learnlib / editor / L3.1c
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
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.