b
bs(1) | bs(1) |
Input/Output examples:
#Copy file oldfile to file newfile. open("read", "oldfile", "r") open("write", "newfile", "w")
...
while ?(write = read)
...
#close "read" and "write": close("read") close("write")
#Pipe between commands.
open("ls", | "!ls | *", "r") |
open("pr", | "!pr | |
while ?(pr | = ls) ... | |
... |
|
|
#be sure to close (wait for) these: close("ls")
close("pr")
WARNINGS
The graphics mode (plot ...) is not particularly useful unless the tplot command is available on your system.
bs is not tolerant of some errors. For example, mistyping a fun declaration is dif®cult to correct because a new de®nition cannot be made without doing a clear. The best solution in such a case is to start by using the edit command.
SEE ALSO
ed(1), sh(1), access(2), printf(3S), stdio(3S), lang(5), regexp(5).
See Section (3M) for a further description of the mathematical functions.
pow() is used for exponentiation Ð see exp(3M));
bs uses the Standard I/O package.
Section 1−56 | − 8 − |