AnujanM / xbiggest

Find the x biggest files in a directory

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xbiggest

Find the x biggest files in your directories.

Setup / installation

Requires Go to be installed and configured.

Install with go get:

$ go get -u -v github.com/AnujanM/xbiggest/...
$ which xbiggest
$GOPATH/bin/xbiggest

Or, build directly via source:

$ git clone https://github.com/AnujanM/xbiggest.git $GOPATH/src/github.com/AnujanM/xbiggest
$ cd $GOPATH/src/github.com/AnujanM/xbiggest
$ make
$ ./xbiggest

Usage

Pass your query to xbiggest via command line argument.

$ xbiggest [number of files] Directories 
$ xbiggest 25 ~ ~Documents
$ xbiggest ~ ~Documents

Query syntax

Every query needs at least 1 directory to search through, the number of files returned can be set on the first argument or the default is 10

Source

Each source should be a relative or absolute path to some directory on your machine. Use ~ for your Home Directory. Seperate directories with spaces

Examples
$ xbiggest . 
$ xbiggest ~/Desktop
$ xbiggest ~/Desktop $GOPATH

Contribute

This project is completely open source, feel free to open an issue or submit a pull request.

Before submitting code, please ensure your changes comply with Golint. Use make lint to test this.

Credits

Inspired by kshvmdn (fsql)

License

xbiggest source code is available under the MIT license.

About

Find the x biggest files in a directory

License:MIT License


Languages

Language:Go 93.4%Language:Makefile 6.6%