Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ bifcp(1) — HP-UX 5.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

bif(5)

cp(1)

BIFCP(1)

NAME

bifcp − copy to or from BIF files

SYNOPSIS

bifcp file1 file2
bifcp file1 [file2...] directory

HP-UX COMPATIBILITY

Level: HP-UX/NUCLEUS

Origin: HP

DESCRIPTION

Bifcp is intended to mimic cp(1). 

A BIF file name is recognized by the embedded colon (:) delimiter (see bif(5) for BIF file naming conventions). 

Bifcp copies a BIF or HP-UX file to a BIF or HP-UX file, or list of files (HP-UX or BIF) to a directory.  The last name on the argument list is the destination file or directory. 

Note that the media should NOT be mounted before using bifcp. 

The file name ’-’ (dash) is interpreted to mean standard input or standard output, depending on its position in the argument list. 

EXAMPLES

bifcp abc /dev/hd.c:x/y/z
copy the HP-UX file abc to the BIF file x/y/z within HP-UX device /dev/hd.c

bifcp /dev/fd.0:/backup/log logcopy
copy BIF file /backup/log within /dev/fd.0 to HP-UX file logcopy within the current directory. 

bifcp /dev/bb:archive -
copy BIF file archive within HP-UX device /dev/bb to standard output. 

The following example copies the BIF files /a, /b, and /c to the HP-UX directory /users/dave:

sdfcp /dev/hd1:/a /dev/hd1:/b /dev/hd1:/c /users/dave

The last example shows how you can implement a "cat" program for concatenating BIF files using bifcp in a shell script:

if [ $# -lt 1 ]
then
echo "Usage: bifcat file ..."
exit 1
fi
for i in $*
do
bifcp $i -
done

SEE ALSO

bif(5), cp(1). 

DIAGNOSTICS

Bifcp returns exit code 0 if the file is copied successfully.  Otherwise it prints a diagnostic and returns non-zero. 

BUGS

The ’-’ (stdio) notation may not work in some situations. 

Hewlett-Packard  —  last mod. May 11, 2021

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