Giter Club home page Giter Club logo

bash-script-skeleton's Introduction

bss (bash script skeleton)

MIT License
a starting template to make everyday scripts in bash

CONTENTS:
LICENSE.md		: License that this work is licensed under
README.md		: this file
functions.sh	: commonly used functions for administration
wireframe.sh	: a shell of a bash script with useful stuff already available
usage.dat		: full usage information for the program
mini_usage.dat	: mini version of usage information
tests.sh		   : source this file in the middle of the wireframe to test functions

ABOUT:
bash script skeleton v04.2
by				   : [email protected]
language		   : US/English
os support		: SL6/RHEL6/CENTOS6/Arch

PURPOSE:
this is meant to be a skeleton of a bash script with all the error handling,
logging, environment seperation, and the rest, already in it. So I can worry
about creating scripts instead of re-creating the skeleton everytime.

there are also a collection of useful functions to use throughout the framework.

and additionally there are snippets of bash commands that i've compiled over the years that can be helpful, rather than baking your own.


INTRO:

edit your script copy as much as you can. it is only a template/framework
and meant to be starting point. you have to tailor it to your requirements.


CONFIG STEPS:

4) copy wireframe.sh to the scriptname of your choosing
) comment 'only_run_as 0' if you'd like to run this script as non-root
) fill out the 'important global variables' REQUIRED section
) fill out the 'global variables' OPTIONAL section if you'd like
) modify the 'argument handling' section to fit your script idea
) modify the files usage.dat and mini_usage.dat to reflect help for
   your script.
) write some code in the CODE section, or feel free to copy and paste useful bits from snippets.dat 2) run. test. debug. run. test. debug. [repeat until you've got it right]

bash-script-skeleton's People

Watchers

 avatar  avatar

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.