Current Supported Releases: Sablime® v6.0 & v5.2
NAME
sfile - expand SBCS file arguments
SYNOPSIS
sfile [-agrR] s-file ...
DESCRIPTION
sfile is an SBCS utility program that uses the SBCS environ-
ment to resolve s-file arguments. The s-files themselves are
not affected.
SBCS commands use a number of methods to resolve their s-
file arguments into actual s-files. The methods include (1)
resolving directories into the s-files they contain, (2)
resolving directories recursively, (3) automatically prefix-
ing names to match expected s-files, and (4) using knowledge
about any separate s-file source tree that may be defined in
the SBCS environment (see sbcsenv(1)).
If sfile does find a match, it interprets the argument as a
new s-file and returns the path of the new s-file. There-
fore an s-file name returned by sfile does not always imply
that the file actually exists, only that that is where an
SBCS command would expect to find one or create one.
OPTION
-a Print absolute path names, starting from root (/).
-g Print the g-file (work files) names, instead of the s-
file names. When a source tree is used, SBCS commands
expect g-file names to specify the s-files; sfile -g]f1
should then be used.
-r Print a relative path names, using the "../" notation
for files not under the current node. The default is a
"best" format that uses one of absolute or relative
addresses depending on the complexity of the path.
-R Descend recursively into any directory argument,
searching for s-files.
EXAMPLE
Suppose a large number of files are retrieved from a source
tree using
nget -eR .
and that after editing all are returned to create new deltas
using
ndelta -y- -R .
It could be a lot of work to remove this last delta across
all the files returned, because nrmdel requires that the
delta be specified on the command line, and that delta could
be different for different files. A small sh(1) script
SBCS Release 1.2 Last change: 1 April 1994 1
based on sfile can be used to solve this problem:
for f in `sfile -gR .`
do
r=`nget -g $f`
nrmdel -r$r $f
done
DIAGNOSTICS
Warning and error messages have error codes that can be used
with nhelp for a more detailed explanation.
SEE ALSO
nadmin(1), nget(1), ndelta(1), nrmdel(1), nget(1), psd(1),
sbcsenv(1).
SBCS Release 1.2 Last change: 1 April 1994 2
Return to SBCS Commands manpage index
Copyright © 2003
Lucent Technologies