Files
seta75D d6fe8fe829 Init
2021-10-11 22:19:34 -03:00

37 lines
914 B
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#
# COMPONENT_NAME: (CMDMAN) commands that allow users to read online
# documentation
#
# FUNCTIONS:
#
# ORIGINS: 27
#
# Copyright (c) 1980 Regents of the University of California.
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
#
#print
If you think back over some of the exercises you've done
so far in this course, they have involved collecting the
output of one program (like "cat" or "grep" or "ls") in
a file, then using that file as the input to another
program, like "pr" or "wc" or "grep".
For example, you could use "ls" and "wc" to _____count
the number of files in a directory. Do that now,
then type "answer N", where N is the number of files.
#create X2
#create X1
#create this
#create stuff
#create foo
#copyin
#user
#uncopyin
ls | %s/../bin/lcount >X1
tail -1 .copy >X2
#cmp X1 X2
#log
#next
5.1b 10