1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
'\"macro stdmacro
.\"
.\" Copyright (c) 2024 Ken McDonell. All Rights Reserved.
.\"
.\" This program is free software; you can redistribute it and/or modify it
.\" under the terms of the GNU General Public License as published by the
.\" Free Software Foundation; either version 2 of the License, or (at your
.\" option) any later version.
.\"
.\" This program is distributed in the hope that it will be useful, but
.\" WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
.\" or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
.\" for more details.
.\"
.TH PMLOGBASENAME 1 "PCP" "Performance Co-Pilot"
.SH NAME
\f3pmlogbasename\f1 \- basename of a PCP archive
.SH SYNOPSIS
\f3pmlogbasename\f1
\f2name\f1
.SH DESCRIPTION
.B pmlogbasename
takes
.I name
(usually the name of one of the physical files in a PCP archive)
and strips it of any compression suffixes
then strips it of any PCP archive component suffixes,
then reports the result (the basename of a PCP archive) on standard output.
.PP
The compression suffixes known to PCP are:
.BR .xz ,
.BR .lzma ,
.BR .bz2 ,
.BR .bz ,
.BR .gz ,
.B .Z
and
.BR .z .
.PP
The PCP archive component suffixes are:
.BR .meta ,
.B .index
and
.BI . <n>
for any integer
.IR <n> .
.PP
The stripping is purely textual and
is done without tests for the existence of any of the
associated files, although if
.I name
does not match the pattern of a valid file name for a PCP archive
then the output is
.I name
without any stripping.
.SH SEE ALSO
.BR PCPIntro (1)
and
.BR LOGARCHIVE (5).
.\" control lines for scripts/man-spell
.\" +ok+ pmlogbasename lzma
|