Git Product home page Git Product logo

fpigs's Introduction

Build Status Docker Automated build

fpigs

Find large files fast

Why

While it is at least a useful tool for myself, it is basically a toy project to learn golang.

Synopsis

Usage: fpigs [OPTION]... [STARTDIR]...
  -concurrent number
    	Start this number of concurrent tree walks (values <= 0 get set to 1) (default 20)
  -d depth
    	Recursion depth (negative values mean unlimited) (default -1)
  -i regex
    	Ignore files/directories matching regex (can be used multiple times)
  -n number
    	Print this number of largest files (default 10)
  -o	Print file names only (e.g., for xargs scripting)
  -u unit
    	Print sizes in specified unit (B, KiB, MiB, GiB, TiB, KB, MB, GB, TB) (default GiB)
  -version
    	Print version and exit

Example output

$ ./fpigs -u KB -i ".git$"
Press <return> to stop processing

2467.8 KB: fpigs
[##############################################################################]

35.1 KB: LICENSE
[#]

5.2 KB: main.go
[]

1.4 KB: flags.go
[]

1.0 KB: flags_test.go
[]

0.7 KB: README.md
[]

0.7 KB: Makefile
[]

7 largest files: 2512.0 KB / 2512.0 KB total

Regex filtering

Filters are applied when:

  • A directory is traversed (This allows cutting of ".git$")
  • A file is inserted in the current list of the N largest files.

Releases

Pre-built binaries are provided here. Please note that these binaries are automatically built by Travis-CI. Your decision if you trust them.

Docker

docker pull rck81/fpigs
docker run -v $HOME:/fpigs -w /fpigs -it --rm rck81/fpigs

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.