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
bash-script-lib, a collection of scripts that let you augment your own scripts with advanced capabilities:
- "script-input", which lets you create "cat"-like input handling that can accept both forms "my-script filename" and "cat filename | my-script".
- "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.
- "filesystem", a collection of functions for normalizing paths, checking the existence of directories, etc.
- "backups", a collection of functions for finding files, paths, and latest versions of files from amongst multiple tar files.
- "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