Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ bcat(1) — GL1 W2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cat(1)

cp(1)

vi(1)

more(1)

pr(1)

tail(1)

BCAT(1)  —  Silicon Graphics

NAME

bcat − catenate and print (Berkeley cat)

SYNOPSIS

bcat [ −u ] [ −n ] [ −s ] [ −v ] file ... 

DESCRIPTION

Bcat reads each file in sequence and displays it on the standard output.  Thus

bcat file

displays the file on the standard output, and

bcat file1 file2 >file3

concatenates the first two files and places the result on the third. 

If no input file is given, or if the argument ‘−’ is encountered, bcat reads from the standard input file.  Output is buffered in 1024-byte blocks unless the standard output is a terminal, in which case it is line buffered.  The −u option makes the output completely unbuffered. 

The −n option displays the output lines preceded by line numbers, numbered sequentially from 1.  Specifying the −b option with the −n option omits the line numbers from blank lines. 

The −s option crushes out multiple adjacent empty lines so that the output is displayed single spaced. 

The −v option displays non-printing characters so that they are visible.  Control characters print like ^X for control-x; the delete character (octal 0177) prints as ^?.  Non-ascii characters (with the high bit set) are printed as M- (for meta) followed by the character of the low 7 bits.  A −e option may be given with the −v option, which displays a ‘$’ character at the end of each line.  Specifying the −t option with the −v option displays tab characters as ^I. 

Bcat is the 4.2bsd version of cat which has different flags and capabilities than the System V version. 

SEE ALSO

cat(1), cp(1), vi(1), more(1), pr(1), tail(1)

BUGS

Beware of ‘bcat a b >a’ and ‘bcat a b >b’, which destroy the input files before reading them. 

Version 2.3  —  July 04, 1985

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026