unspar

command module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: MIT Imports: 15 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

unspar

unspar is a CLI tool to re-format sparse files to a regular (non-sparse) file.

This is especially useful if you need to move sparse files through tools, or systems that do not correctly implement the sparse file format. (e.g Go's tar.Writer)

Installation

go install github.com/alexbathome/unspar@latest

Usage

Create an unsparse file:

unspar file.sparse file.unsparse

Create a sparse file from an unsparse file:

unspar -s file.unsparse file.sparse
UNSPAR(1)    Convert between sparse files and the unsparsed format   UNSPAR(1)

NAME
       unspar - Convert between sparse files and the unsparsed format

SYNOPSIS
       unspar [options...] [argument...]

DESCRIPTION
       Convert between sparse files and the unsparsed format.

       By default the input is a sparse file, which is written to the output
       file in the unsparsed format (the sparse file with its holes removed).
       With -s the input is an unsparsed file, which is written to the output
       file as a sparse file.

OPTIONS
       --f --force
	      overwrite an existing output file, and unsparse input that has
	      no holes

       --h --help
	      help for unspar

       --magic
	      print the magic(5) rules for the unsparsed format to stdout

       --man  print the man page to stdout

       --s --sparse
	      convert an unsparsed file back into a sparse file

       --v --version
	      version for unspar

unspar				  2026-10-19			     UNSPAR(1)

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
⌂ 换网址