Git Product home page Git Product logo

big_text's Introduction

Locate big text files and other big files that can be compressed to save disk space.

By default the program looks for any file that is at least 1GB in size and that can be compressed at least 25%. Alternatively, compressible files can be located by identifying files containing only ASCII text. Both of these checks are accomplished by testing the first 8 Kb of the file.

Non-text or non-compressible files are automatically classified by their extension. If 10 or more files in a row (for a given extension) fail the text or deflate check, then subsequent files with that extension are ignored.

Example output

$ big_text -h
1.3 GB    ./path/to/big/file.tsv
10.1 GB   ./path/to/bigger/file.mpileup
[...]
Files checked = 577
 - Small files skipped = 402
 - Non-files skipped = 175
 - Ignored files = 0
Candidate files found = 17
 - Total size = 291.3 GB
Errors encountered = 0

Usage

USAGE:
    big_text [FLAGS] [OPTIONS] [root]...

FLAGS:
        --help              Prints help information
    -h, --human-readable    Print sizes in a human readable format.
    -q, --quiet             Only print errors and big files.
    -V, --version           Prints version information

OPTIONS:
        --block-size <block-size>
            Examine first N bytes of each file to detect text or
            compressible files. The same size units used by --min-size
            are allowed [default: 8k]
        --check-limit <check-limit>
            If > check-limit files with an extension are found to be binary
            files, then subsequent files with the same extension are
            ignored [default: 10]
        --compression-ratio <compression-ratio>
            The highest compression ratio allowed when using the 'deflate'
            criteria; calculated as new_size / old_size [default: 0.75]
        --criteria <criteria>
            The criteria used to detect candidate files; either 'text' for
            text files, or 'deflate' for files compressible using the
            deflate algorithm. [default: text]
        --min-size <min-size>
            Minimum size of files to consider. The size is measured in
            bytes by default. The units 'b', 'k', 'M', 'G', 'T', and 'P',
            may be used to specify units of bytes, kilobytes, megabytes,
            gigabytes, terabytes, and petabytes [default: 1G]

ARGS:
    <root>...    Root folder or file.

big_text's People

Contributors

mikkelschubert avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.