| |||||||||||||||||||||||||||||||||||||
Wicked Cool Shell Scripts: The LibraryThere are 101 scripts discussed in this book, but in fact there are closer to 150 scripts available, in total. Here's how you can get them if you'd like. You are welcome to do this if you don't have the book, but it'll make a lot more sense if you do have "Wicked Cool Shell Scripts", of course. Note that you can also download the entire set of scripts as AllFiles.tgz. Just make sure you unpack the scripts into their own directory!
An interactive spell checking program that lets you step
through all known spelling errors in a document, indicate which
ones you'd like to fix (and the correction), then applies them
all to the file. The original version of the file is saved with a
.shp suffix and the new version replaces the old.
use the 'aspell' feature and some filtering to allow easy
command-line spell checking of a given input (file)
Temperature conversion script that lets the user enter
a temperature in any of Fahrenheit, Celsius or Kelvin and receive the
equivalent temperature in the other two units as the output.
given a principal loan amount, interest rate, and
duration of loan (years), calculate the per-payment amount.
prompt the user to add a new event for the Agenda script
scan through the user's .agenda file to see if there
are any matches for the current or next day
a simple alternative to cat -n, etc.
show the contents of a file, including additional useful info
only feed the fmt command those lines in the input stream
that are longer than the specified length
a front-end to quota that works with fullword flags a la GNU
make sftp start up more like ftp
grep with context display and highlighted pattern matches
this script should be either symbolically
linked or hard linked to all three names - it allows users to work
with compressed files transparently.
given a file, try compressing it with all the available
compression tools and keep the compressed file that's smallest, reporting
the result to the user. If '-a' isn't specified, it skips compressed
files in the input stream.
disk quota analysis tool for Unix.
Disk quota analysis tool for Unix, assumes all user
accounts are >= UID 100. Emails message to each violating user
and reports a summary to the screen
summarize available disk space and present in a logical
and readable fashion
a friendlier version of df
build the central, public locate database as user nobody,
and simultaneously step through each home directory to find those
that contain a .slocatedb file. If found, an additional, private
version of the locate database will be created for that user.
Try to search the user's secure locate database for the
specified pattern. If none exists, output a warning and create
one. If secure locate db is empty, use system one instead.
add a new user to the system, including building their
home directory, copying in default config data, etc.
For a standard Unix/Linux system, not Mac OS X
suspend a user account for the indefinite future
delete a user account without a trace...
Not for use with Mac OS X
Checks to ensure that all environment variables are valid.
Looks at SHELL, HOME, PATH, EDITOR, MAIL, and PAGER
Clean up the guest account during the logout process
find all SUID files or programs on the system other
than those that live in /bin and /usr/bin, and
output the matches in a friendly and useful format.
friendly front-end to the date command
|
| ||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||