pear

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2025 License: GPL-3.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

pear

Peek into archives

Supported formats:

  • ar
  • tar
  • tar in bzip2
  • tar in gzip
  • tar in xz
  • zip
  • 7z

Installation

Download the binary corresponding to your environment from the latest release.

Alternatively, install the Go toolchain, then run

go install github.com/pipe01/pear@latest

Usage

-n N
    stop after N files, or -1 for all (default 10)
-s N
    skip the first N files

Examples

$ pear archive.tar
file1
file2
dir/file3
dir/file4

$ pear -n 3 archive.tar
file1
file2
dir/file3

$ pear -s 1 -n 3 archive.tar
file2
dir/file3
dir/file4

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址