keegoid / libkm

A collection of useful shell functions for use in scripting projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

libkm

A collection of useful shell functions for use in scripting projects.

Table of Contents generated with DocToc

Overview

As my work with shell scripts progresses, I've noticed an increase in repeated code blocks. More and more I'm having to keep the same code updated in several places. The solution, centralize duplicate code into one or more library files.

Spending a little time converting duplicate code into functions isn't too hard, plus it can improve the readability and reliability of more complex projects. Large chunks of logic can be hidden away and called upon as often as necessary. All that's required is to source the library file in any scripts that need it.

Usage

  1. Copy libkm.sh to the root of your project directory.
  2. Source libkm.sh at the top of your shell script:
# sourcing the library file
source libkm.sh

License

SEE: http://keegoid.mit-license.org

About

A collection of useful shell functions for use in scripting projects.

License:Other


Languages

Language:Shell 100.0%