From 8d70bdbdf6fd88bf88b9a384cfaafb6668c804ec Mon Sep 17 00:00:00 2001 From: Ian Darwin Date: Mon, 28 Sep 1998 16:01:46 +0000 Subject: import BTL learn(1) lessons/editor --- usr.bin/learn/lib/editor/L19.1b | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 usr.bin/learn/lib/editor/L19.1b (limited to 'usr.bin/learn/lib/editor/L19.1b') diff --git a/usr.bin/learn/lib/editor/L19.1b b/usr.bin/learn/lib/editor/L19.1b new file mode 100644 index 00000000000..3fd0369da4d --- /dev/null +++ b/usr.bin/learn/lib/editor/L19.1b @@ -0,0 +1,41 @@ +#print +Just as you can print several lines at once by +giving a range of addresses with the 'p' command, +you can delete several lines at once by giving +two addresses. For example, + 2,5d +deletes lines 2, 3, 4 and 5 of the current file. The +command + 1,.-1d +deletes all lines up to but not including the current line. +And + 1,$d +deletes EVERY line. (Use with extreme caution, obviously.) +There is a file named 'counties' in this directory. +Throw away the first five lines of it and rewrite it. +Then type 'ready' as usual. +#create Ref +Morris +Warren +Union +Somerset +Hunterdon +#create counties +Bergen +Passaic +Sussex +Hudson +Essex +Morris +Warren +Union +Somerset +Hunterdon +#pipe +#user +#unpipe +#cmp counties Ref +#log +#next +20.1a 10 +20.2a 5 -- cgit v1.2.3