The GNU shtool is one big shell script that encapsulates a number of somewhat difficult or tricky tasks. While its primary intent is for use within installation scripts, it can also be useful for general scripting and is very educational with regard to learning portable shell scripting.
From the man page:
## Available commands: ## echo Print string with optional construct expansion ## mdate Pretty-print modification time of a file or dir ## table Pretty-print a field-separated list as a table ## prop Display progress with a running propeller ## move Move files with simultaneous substitution ## install Install a program, script or datafile ## mkdir Make one or more directories ## mkln Make link with calculation of relative paths ## mkshadow Make a shadow tree through symbolic links ## fixperm Fix file permissions inside a source tree ## rotate Logfile rotation ## tarball Roll distribution tarballs ## subst Apply sed(1) substitution operations ## platform Platform Identification Utility ## arx Extended archive command ## slo Separate linker options by library class ## scpp Sharing C Pre-Processor ## version Maintain a version information file ## path Deal with program paths
I installed that on my Mac OS X box - it needs "pod2man", which I needed to get from CPAN ("install Pod::Man").
Got something to add? Send me email.
More Articles by Tony Lawrence © 2011-03-20 Tony Lawrence
Dump may work fine for you a thousand times. But it _will_ fail under the right circumstances. And there is nothing you can do about it. (Linus Torvalds)
Printer Friendly Version
shtool: Tech Words of the Day Copyright © October 2004 Tony Lawrence
Have you tried Searching this site?
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.
Contact us
Printer Friendly Version