summaryrefslogtreecommitdiff
path: root/usr.bin/learn/lib/files/L1.2b
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/learn/lib/files/L1.2b')
-rw-r--r--usr.bin/learn/lib/files/L1.2b25
1 files changed, 25 insertions, 0 deletions
diff --git a/usr.bin/learn/lib/files/L1.2b b/usr.bin/learn/lib/files/L1.2b
new file mode 100644
index 00000000000..f8017405282
--- /dev/null
+++ b/usr.bin/learn/lib/files/L1.2b
@@ -0,0 +1,25 @@
+#print
+You can use the "ls" command to find out how
+many files you have in your directory.
+How many files are there in the current
+directory now? Make another list - the list of files
+that you made before is no longer right because I added
+some files to the directory. When you find out
+how many files there are in this directory, type
+"answer N" where N is the number of files.
+#create a1
+file a1
+#create a2
+file a2
+#create X1
+file a1
+#copyin
+#user
+#uncopyin
+ls | %s/../lcount >X1
+tail -1 .copy >X2
+#cmp X1 X2
+#log
+#next
+2.1a 10
+2.2a 5