File:  [CSRG BSD Unix] / 43BSD / usr.lib / learn / editor / L73.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
Back early in this sequence we made clear that
the shell (the normal command interpreter) and the
editor were distinct and they didn't pay any attention
to each other's commands.
Sometimes you are in the editor and you really want
to execute a shell command.  You can do that
by prefixing it with !.  For example,
  !ls
will list your directory.
Remember that "date" is the shell command
to find out what time it is.
Try editing the file 'bridge'; print it out,
then, without leaving the editor, ask for the
time and then leave the editor and say "ready".
#create bridge
brooklyn
manhattan
williamsburg
queensborough
george washington
triborough
bronx whitestone
throgs neck
#copyout
#user
#uncopyout
grep '[A-Z].. [A-Z].. .. [0-9][0-9]:[0-9][0-9]:[0-9][0-9] ' .ocopy >/dev/null
#log
#next
74.1a 10

unix.superglobalmegacorp.com

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