bifcp(1) — Series 300/400 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 on HP-UX device /dev/rdsk/1s0:
bifcp abc /dev/rdsk/1s0:x/y/z
Copy BIF file /backup/log on /dev/rdsk/1s0 to HP-UX file logcopy in the current directory:
bifcp /dev/rdsk/1s0:/backup/log logcopy
Copy BIF file archive on 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
cat(1) can be used to concatenate 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 − (standard input/output) notation does not work in some situations.
AUTHOR
bifcp was developed by HP.
SEE ALSO
Hewlett-Packard Company — HP-UX Release 9.10: April 1995