Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ bifcp(1) — HP-UX 6.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

bif(4)

cp(1)

BIFCP(1)  —  HP-UX

Series 300, 500 Only

NAME

bifcp − copy to or from BIF files

SYNOPSIS

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

DESCRIPTION

Bifcp is intended to mimic cp(1).

A BIF file name is recognized by the embedded colon (:) delimiter (see bif(4) 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. 

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

RETURNS

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

EXAMPLES

Copy the HP-UX file abc to the BIF file x/y/z within HP-UX device /dev/rdsk/1s0:

bifcp abc /dev/rdsk/1s0:x/y/z

Copy BIF file /backup/log within /dev/rdsk/1s0 to HP-UX file logcopy within the current directory:

bifcp /dev/rdsk/1s0:/backup/log logcopy

Copy BIF file archive within HP-UX device /dev/dsk/2s5 to standard output:

bifcp /dev/dsk/2s5:archive -

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

sdfcp /dev/rdsk/2s3:/a /dev/rdsk/2s3:/b /dev/rdsk/2s3:/c /users/dave

The last example shows how you can implement a cat(1) 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

WARNINGS

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

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

AUTHOR

Bifcp was developed by HP. 

SEE ALSO

bif(4), cp(1). 

Hewlett-Packard Company  —  Version B.1,  May 11, 2021

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