Forgot your password?
typodupeerror

Comment Open source bash libraries (Score 2, Informative) 411

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

Slashdot Top Deals

...when fits of creativity run strong, more than one programmer or writer has been known to abandon the desktop for the more spacious floor. - Fred Brooks, Jr.

Working...