bk cat(7.3ce)               BitKeeper User's Manual              bk cat(7.3ce)

NAME
       bk cat - concatenate and display file contents

SYNOPSIS
       bk cat <file> [<file> ...]

DESCRIPTION
       bk cat is used to send one or more files to the standard output.  It is
       used when a file's contents are wanted but the caller does not know  if
       the  file  is  or is not under revision control or is or is not checked
       out.

       bk cat differs from the standard UNIX cat command in two  ways:  a)  it
       does not support any of the UNIX cat options, and b) if a file is spec-
       ified which does not exist, but a corresponding sfile does  exist,  the
       most recent version of sfile is sent to standard output.

       The following shell script emulates the bk cat command:

           for i in "$@"
           do       if [ -f $i ]
                    then    cat $i
                    else    # ignore error messages
                            bk get -kp $i 2>/dev/null
                    fi
           done

CATEGORY
       File

BitKeeper Inc                         1E1                        bk cat(7.3ce)