Skip to content
/ ext-stats Public

Directory's extension statistics displayed in the command line interface

License

Notifications You must be signed in to change notification settings

yak6/ext-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

About

This tool will allow you to check folder's extension statistics (in percentage) with various options.

Install

Clone repository using git:

git clone https://github.com/yak6/ext-stats

Change your directory to copied repository:

cd ext-stats

Make the file and install using root priviliges:

sudo make install

From now on the executable will be available at /usr/local/bin/ directory.

Compile

Compile source code using Makefile:

make

The output will be available at bin/ directory.

Usage

After making a proper instalation, the executable should be available in the /usr/local/bin/ which means you can run it everywhere using dstat

Basic usage

Try using help:

dstat --help

To check file percentage of a directory simply type:

dstat <directory path>

Sort the percentage

Sort the ouput, ascending or descending.

Arguments: --sort <increasing/decreasing>, short version: -s <i/d>

Example usage:

dstat exampledirectory/ --sort decreasing

Mode

The program will calculate the percentage result in lines or characters, by default in characters.

Arguments: --mode <lines/characters>, short version: -m <l/c>

Example usage:

dstat exampledirectory/ --mode lines

Range after decimal point

Range of numbers after the decimal point in the percentage. The range must be a natural number.

Arguments: --range <range>, short version: r <range>

Example usage:

dstat exampledirectory/ --range 3

Amount of lines or characters

Include the amount of characters or lines next to the extension's percentage.

Arguments: --amount, short version: -a

Total lines or characters

Include total lines or characters in the output.

Arguments: --total or -t

About

Directory's extension statistics displayed in the command line interface

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published