]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Scripts: Add zstd support to xzgrep.
authorAdam Borowski <kilobyte@angband.pl>
Fri, 25 Sep 2020 01:35:18 +0000 (03:35 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Sat, 5 Dec 2020 20:39:03 +0000 (22:39 +0200)
Thanks to Adam Borowski.

src/scripts/xzgrep.1
src/scripts/xzgrep.in

index 2a515e49ffd6b66b4a2b9b30c8d7cbdbe2442aa4..3ac4fadbec32cf7680618cb0f91fad42a6c19a45 100644 (file)
@@ -6,7 +6,7 @@
 .\"
 .\" License: GNU GPLv2+
 .\"
-.TH XZGREP 1 "2011-03-19" "Tukaani" "XZ Utils"
+.TH XZGREP 1 "2020-12-05" "Tukaani" "XZ Utils"
 .SH NAME
 xzgrep \- search compressed files for a regular expression
 .SH SYNOPSIS
@@ -41,8 +41,9 @@ which may be either uncompressed or compressed with
 .BR lzma (1),
 .BR gzip (1),
 .BR bzip2 (1),
+.BR lzop (1),
 or
-.BR lzop (1).
+.BR zstd (1).
 All options specified are passed directly to
 .BR grep (1).
 .PP
@@ -54,8 +55,9 @@ and fed to
 When reading from standard input,
 .BR gzip (1),
 .BR bzip2 (1),
+.BR lzop (1),
 and
-.BR lzop (1)
+.BR zstd (1)
 compressed files are not supported.
 .PP
 If
@@ -94,4 +96,5 @@ or
 .BR gzip (1),
 .BR bzip2 (1),
 .BR lzop (1),
+.BR zstd (1),
 .BR zgrep (1)
index 9db5c3a81c21e8c1399f80037c169c33bc09bc1a..28a777b3bc804890684aa48b39419806a53c06c8 100644 (file)
@@ -159,6 +159,7 @@ for i; do
     *[-.][zZ] | *_z | *[-.]gz | *.t[ag]z) uncompress="gzip -cdfq";;
     *[-.]bz2 | *[-.]tbz | *.tbz2) uncompress="bzip2 -cdfq";;
     *[-.]lzo | *[-.]tzo) uncompress="lzop -cdfq";;
+    *[-.]zst | *[-.]tzst) uncompress="zstd -cdfq";;
     *) uncompress="$xz -cdfq";;
   esac
   # Fail if xz or grep (or sed) fails.