| CBF-REWRITE(1) | General Commands Manual | CBF-REWRITE(1) |
cbf-rewrite —
cbf-rewrite |
[-hpv] [-H
name=value]
[file ...] |
cbf-rewrite program rewrites CBF images.
By default, cbf-rewrite reads a CBF image
from the standard input stream, rewrites it according to the options given,
and writes the output to the standard output stream.
The file arguments are processed in the order given. A single dash (‘-’) represents the standard input stream, and may appear multiple times in the file list. When the standard input stream is read, the rewritten CBF image is written to the standard output stream. When a file is read, it is rewritten to a temporary file of the same name as the file being processed but ending in .tmp, and then moved into place, replacing the original file. If no file arguments are given, the standard input stream is read.
The options are as follows:
-h-pIf the user ID or group ID cannot be preserved due to insufficient permissions, no error message is printed and the exit status is not changed.
If the set-user-ID-on-execution bit or the set-group-ID-on-execution bit is set on the source, and the user ID or the group ID cannot be set on the destination, then neither the set-user-ID-on-execution bit nor the set-group-ID-on-execution bit are set on the destination.
Extended attributes are not preserved.
-v-H
name=valueThe following special header field names can be used to identify header fields that do not have a name:
Pseudo.Timestampcbf-rewrite program exits 0 on success, and >0 if
an error occurs.
$ cbf-rewrite -p -H
Exposure_period='0.5 s' foo.cbfTo change the timestamp:
$ cbf-rewrite -H
Pseudo.Timestamp=2021-01-13T14:58:12.602 foo.cbf| July 21, 2021 |