https://github.com/cbodden/bargraph.sh
This is a command line bar graph
https://github.com/cbodden/bargraph.sh
Last synced: 11 months ago
JSON representation
This is a command line bar graph
- Host: GitHub
- URL: https://github.com/cbodden/bargraph.sh
- Owner: cbodden
- License: other
- Created: 2016-09-23T20:36:53.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-28T17:31:19.000Z (almost 10 years ago)
- Last Synced: 2025-07-07T02:07:52.363Z (about 1 year ago)
- Language: Shell
- Homepage:
- Size: 85.9 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
 
bargraph.sh
====
This script is used for creating a bargraph listing from all the
extensions contained in a dir.
Usage
----

NAME
bargraph.sh - show bar graphs of dir file types
SYNOPSIS
bargraph.sh [OPTION]...
DESCRIPTION
This script shows a bar graph with the total count
of files in a dir according to extension.
-b [character]
This is to specify what character you want to use to
draw your bar graphs. If this option is used, place
the character in quotes (ex: "#").
Default is "#"
-d [path]
This is to specify the path to be used. Need to input
this for the script to work.
-e [ext{,ext,ext}]
This option is to select a single or list of extensions
to show in the bargraph.
Usage is either { -e "foo" } for single extension or
{ -e "foo,bar,baz" } for multiple. Always comma separated.
-h Show this file (usage).
-r Recursive.
-s This sorts output according to most files.
Default is sorted by name.
Requirements
----
- Bash (https://www.gnu.org/software/bash/)
- GNU Awk (https://www.gnu.org/software/gawk/)
- GNU Sed (https://www.gnu.org/software/sed/)
Todo / Add
----
License and Author
----
Author:: Cesar Bodden (cesar@pissedoffadmins.com)
Copyright:: 2016, Pissedoffadmins.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .