Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

An open source day-to-day bash library

License

NotificationsYou must be signed in to change notification settings

e-picas/bash-library

Repository files navigation

An open source day-to-day bash library.

Build Status

Key features:

  • manage strings, files, integers and arrays easily
  • build colorized contents with text effect, foreground and background colors
  • execute sub-jobs with a large control upon outputs, errors and status
  • build some scripts with command line options and arguments easily
  • the library is well-documented and unit-tested

To begin, have a look atthe wiki.

Installation

Installing thePiwi Bash Library is as simple as making a copy of two files in your targetdirectory: thelibrary source itself andits Unix manual page.

You can install the package in many ways explained in theGlobal documentation ;the best practice is to usethe internal interface as it presents facilities to update the library.

wget --no-check-certificate https://github.com/piwi/bash-library/archive/master.tar.gztar -xvf master.tar.gzcd piwi-bash-library-master./bin/piwi-bash-library help

To read the library's manpage, run:

man man/piwi-bash-library.man

Usage

To use the library in a bash script, justsource it at the top of your code or before anycall of its methods or variables:

#!/bin/bashsource path/to/piwi-bash-library.bash...

The full documentation of the library is available online athttp://github.com/piwi/bash-library/wiki.

Demonstrations

A set of test and demonstration files is included in thesamples/ directory of the package.These files are not required for a normal usage of the library.

To run one of these tests, just run:

cd path/to/downloaded/package/piwi-bash-library./samples/file-test.sh

You can use the--help option to get help or info:

./samples/file-test.sh --help

Author & License

About

An open source day-to-day bash library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp