Two New Scripts
Sun Dec 17, 2006 · 87 words

useradd.sh and freplace.sh. The first is a simple CLI utility for creating users and the second finds and replaces files.

> ./useradd.sh

Usage: sudo useradd.sh [-u uid] [-g group] [-a] [-c] [-d home] [-s shell] [-rn realname] name

-a makes new user an administrator.

> ./freplace.sh

Usage: freplace.sh [-sb] [-o owner:group] -d indir target replacement

Replaces target in directory indir with replacement. Has a few extra features as well. Both are still pretty basic, but serve a purpose and I'll probably keep updating them. Handle with care.


back · essays · credits ·