diff options
author | Ian Darwin <ian@cvs.openbsd.org> | 1998-09-28 16:01:46 +0000 |
---|---|---|
committer | Ian Darwin <ian@cvs.openbsd.org> | 1998-09-28 16:01:46 +0000 |
commit | 8d70bdbdf6fd88bf88b9a384cfaafb6668c804ec (patch) | |
tree | 034fd6a68d5b6928d6fe4e51de71c9868bb460b1 /usr.bin/learn/lib/editor/L73.1a | |
parent | e9be7faad5fbf61edcad3700142615e315e407bc (diff) |
import BTL learn(1) lessons/editor
Diffstat (limited to 'usr.bin/learn/lib/editor/L73.1a')
-rw-r--r-- | usr.bin/learn/lib/editor/L73.1a | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/usr.bin/learn/lib/editor/L73.1a b/usr.bin/learn/lib/editor/L73.1a new file mode 100644 index 00000000000..158d0d987b3 --- /dev/null +++ b/usr.bin/learn/lib/editor/L73.1a @@ -0,0 +1,34 @@ +#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 +#create X2 +!date +#copyin +#user +#uncopyin +grep date .copy | tail -1 >X1 +#cmp X1 X2 +#log +#next +74.1a 10 |