1
0
ミラー元 https://git.tukaani.org/xz.git 前回の同期 2025-07-06 12:26:39 +00:00

Scripts: Add zstd support to xzgrep.

Thanks to Adam Borowski.
このコミットが含まれているのは:
Adam Borowski 2020-09-25 03:35:18 +02:00 committed by Lasse Collin
コミット 94fd724749
2個のファイルの変更7行の追加3行の削除

ファイルの表示

@ -6,7 +6,7 @@
.\" .\"
.\" License: GNU GPLv2+ .\" License: GNU GPLv2+
.\" .\"
.TH XZGREP 1 "2011-03-19" "Tukaani" "XZ Utils" .TH XZGREP 1 "2020-12-05" "Tukaani" "XZ Utils"
.SH NAME .SH NAME
xzgrep \- search compressed files for a regular expression xzgrep \- search compressed files for a regular expression
.SH SYNOPSIS .SH SYNOPSIS
@ -41,8 +41,9 @@ which may be either uncompressed or compressed with
.BR lzma (1), .BR lzma (1),
.BR gzip (1), .BR gzip (1),
.BR bzip2 (1), .BR bzip2 (1),
.BR lzop (1),
or or
.BR lzop (1). .BR zstd (1).
All options specified are passed directly to All options specified are passed directly to
.BR grep (1). .BR grep (1).
.PP .PP
@ -54,8 +55,9 @@ and fed to
When reading from standard input, When reading from standard input,
.BR gzip (1), .BR gzip (1),
.BR bzip2 (1), .BR bzip2 (1),
.BR lzop (1),
and and
.BR lzop (1) .BR zstd (1)
compressed files are not supported. compressed files are not supported.
.PP .PP
If If
@ -94,4 +96,5 @@ or
.BR gzip (1), .BR gzip (1),
.BR bzip2 (1), .BR bzip2 (1),
.BR lzop (1), .BR lzop (1),
.BR zstd (1),
.BR zgrep (1) .BR zgrep (1)

ファイルの表示

@ -159,6 +159,7 @@ for i; do
*[-.][zZ] | *_z | *[-.]gz | *.t[ag]z) uncompress="gzip -cdfq";; *[-.][zZ] | *_z | *[-.]gz | *.t[ag]z) uncompress="gzip -cdfq";;
*[-.]bz2 | *[-.]tbz | *.tbz2) uncompress="bzip2 -cdfq";; *[-.]bz2 | *[-.]tbz | *.tbz2) uncompress="bzip2 -cdfq";;
*[-.]lzo | *[-.]tzo) uncompress="lzop -cdfq";; *[-.]lzo | *[-.]tzo) uncompress="lzop -cdfq";;
*[-.]zst | *[-.]tzst) uncompress="zstd -cdfq";;
*) uncompress="$xz -cdfq";; *) uncompress="$xz -cdfq";;
esac esac
# Fail if xz or grep (or sed) fails. # Fail if xz or grep (or sed) fails.