HP-UX Reference (11i v1 05/09) - 1 User Commands A-M (vol 1)
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 -2 -h ’List’", "w")
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 difficult to correct because
a new definition 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 Hewlett-Packard Company − 8 − HP-UX 11i Version 1: September 2005