Slashdot Mirror


User: relinked

relinked's activity in the archive.

Stories
0
Comments
1
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 1

  1. Open source bash libraries on Adding Some Spice To *nix Shell Scripts · · Score: 2, Informative

    Here's a neat trick to access the output of commands as file handles:

    diff <( echo 'hello') <( echo 'world')

    Now that I've got your attention ;) I'll take this opportunity to plug my open source bash libraries:

    bash-script-lib, a collection of scripts that let you augment your own scripts with advanced capabilities:

    1. "script-input", which lets you create "cat"-like input handling that can accept both forms "my-script filename" and "cat filename | my-script".
    2. "script-targets", a framework for creating scripts that accept single or multiple "build-like" targets. You program just the targets; the framework takes care of the rest.
    3. "filesystem", a collection of functions for normalizing paths, checking the existence of directories, etc.
    4. "backups", a collection of functions for finding files, paths, and latest versions of files from amongst multiple tar files.
    5. "display", a collection of functions for tabulating output, converting end-of-line-delimited output into arrays, etc.

    bash-sys-manage, a collection of scripts that lets you manage VPS instances by installing components and backing up and restoring discrete aspects of a server. E.g.:

    install.sh system.apt system.locale system.users system.nginx nginx.config packages.utils.base packages.utils.build php.package php-fm.build apc.package memcache.package

    backup.sh system.users system.config mysql.database