17行目: 17行目:
!xzgrep<br>xzegrep<br>xzfgrep
!xzgrep<br>xzegrep<br>xzfgrep
|invokes grep(1) on files which may be either uncompressed or compressed with xz(1), lzma(1), gzip(1), bzip2(1), lzop(1), or zstd(1).  All options specified are passed directly to grep(1).If  xzgrep  is  invoked  as xzegrep or xzfgrep then egrep(1) or fgrep(1) is used instead of grep(1).
|invokes grep(1) on files which may be either uncompressed or compressed with xz(1), lzma(1), gzip(1), bzip2(1), lzop(1), or zstd(1).  All options specified are passed directly to grep(1).If  xzgrep  is  invoked  as xzegrep or xzfgrep then egrep(1) or fgrep(1) is used instead of grep(1).
|-
!xzless<br>lzless
|filter  that displays text from compressed files to a terminal.  It works on files compressed with xz(1) or lzma(1).  If no files are given, xzless reads from standard input. xzless uses less(1) to present its output.
|-
|-
!lzgrep<br>lzegrep<br>lzfgrep
!lzgrep<br>lzegrep<br>lzfgrep

2023年1月6日 (金) 12:09時点における版

xz is practically a superset of lzma, unlzma, and lzcat as found from LZMA Utils 4.32.x. In most cases, it is possible to replace LZMA Utils with XZ Utils without breaking existing scripts. There are some incompatibilities though, which may sometimes cause problems.

関連コマンド

コマンド 概要
unxz is equivalent to xz --decompress.
xzcat is equivalent to xz --decompress --stdout.
xzcmp
xzdiff
invoke cmp(1) or diff(1) on files compressed with xz(1), lzma(1), gzip(1), bzip2(1), or lzop(1). All options specified are passed directly to cmp(1) or diff(1).
xzgrep
xzegrep
xzfgrep
invokes grep(1) on files which may be either uncompressed or compressed with xz(1), lzma(1), gzip(1), bzip2(1), lzop(1), or zstd(1). All options specified are passed directly to grep(1).If xzgrep is invoked as xzegrep or xzfgrep then egrep(1) or fgrep(1) is used instead of grep(1).
xzless
lzless
filter that displays text from compressed files to a terminal. It works on files compressed with xz(1) or lzma(1). If no files are given, xzless reads from standard input. xzless uses less(1) to present its output.
lzgrep
lzegrep
lzfgrep
The same applies to names lzgrep, lzegrep, and lzfgrep, which are provided for backward compatibility with LZMA Utils.
lzma is equivalent to xz --format=lzma.
unlzma is equivalent to xz --format=lzma --decompress.
lzcat is equivalent to xz --format=lzma --decompress --stdout.
lzcmp
lzdiff
are provided for backward compatibility with LZMA Utils.